X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_cmdline%2Fcmdline_parse_etheraddr.h;h=789a32468593ae9a4892b7bfa08856d58c88b4cc;hb=69d22b8e668d4cbc6d3a5e2873551de5d44c3a45;hp=4c2817d4a9983d8e4329729313fb476829e8a99e;hpb=dada9ef6edc59015b6674b5a95258787c71401b0;p=dpdk.git diff --git a/lib/librte_cmdline/cmdline_parse_etheraddr.h b/lib/librte_cmdline/cmdline_parse_etheraddr.h index 4c2817d4a9..789a324685 100644 --- a/lib/librte_cmdline/cmdline_parse_etheraddr.h +++ b/lib/librte_cmdline/cmdline_parse_etheraddr.h @@ -66,10 +66,6 @@ extern "C" { #endif -struct cmdline_token_etheraddr_data { - uint8_t flags; -}; - struct cmdline_token_etheraddr { struct cmdline_token_hdr hdr; }; @@ -82,15 +78,13 @@ int cmdline_parse_etheraddr(cmdline_parse_token_hdr_t *tk, const char *srcbuf, int cmdline_get_help_etheraddr(cmdline_parse_token_hdr_t *tk, char *dstbuf, unsigned int size); -/* - * Warning! Not compatible with C++! - */ -#define TOKEN_ETHERADDR_INITIALIZER(structure, field) \ -{ \ - .hdr = { \ - .ops = &cmdline_token_etheraddr_ops, \ - .offset = offsetof(structure, field), \ - }, \ +#define TOKEN_ETHERADDR_INITIALIZER(structure, field) \ +{ \ + /* hdr */ \ + { \ + &cmdline_token_etheraddr_ops, /* ops */ \ + offsetof(structure, field), /* offset */ \ + }, \ } #ifdef __cplusplus