From: Коренберг Марк (ноутбук дома) Date: Sun, 9 Sep 2012 16:30:20 +0000 (+0600) Subject: genl/family flags can be damaged during the auto-indentation. X-Git-Tag: libnl3_2_15~62^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=787f14dbe30ca22c9e9c7e9b1ff0ce6dfb00db7e;p=libnl genl/family flags can be damaged during the auto-indentation. "-" was never used in the names of the flags. "_" was used in all places of the library. So, I just changed the undescore to the minus. Automatic indentation can insert spaces on either side of the minus, so the library will be compiled, but will not be usable (in this part of the code), as the parser will split words by white space, and the flag "admin - perm" will never work. --- diff --git a/lib/genl/family.c b/lib/genl/family.c index 64b98cd..05e45ac 100644 --- a/lib/genl/family.c +++ b/lib/genl/family.c @@ -96,10 +96,10 @@ static void family_dump_line(struct nl_object *obj, struct nl_dump_params *p) } static const struct trans_tbl ops_flags[] = { - __ADD(GENL_ADMIN_PERM, admin-perm) - __ADD(GENL_CMD_CAP_DO, has-doit) - __ADD(GENL_CMD_CAP_DUMP, has-dump) - __ADD(GENL_CMD_CAP_HASPOL, has-policy) + __ADD(GENL_ADMIN_PERM, admin_perm) + __ADD(GENL_CMD_CAP_DO, has_doit) + __ADD(GENL_CMD_CAP_DUMP, has_dump) + __ADD(GENL_CMD_CAP_HASPOL, has_policy) }; static char *ops_flags2str(int flags, char *buf, size_t len)