summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorКоренберг Марк (ноутбук дома) <socketpair@gmail.com>2012-09-09 22:30:20 +0600
committerКоренберг Марк (дома) <socketpair@gmail.com>2012-10-19 22:16:44 +0600
commit787f14dbe30ca22c9e9c7e9b1ff0ce6dfb00db7e (patch)
tree637336e15ba546610a2f6e40158240b9a440cdc6
parent1fa61d189250161474894d8eb6f729aae789b296 (diff)
downloadlibnl-787f14dbe30ca22c9e9c7e9b1ff0ce6dfb00db7e.tar.gz
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.
-rw-r--r--lib/genl/family.c8
1 files changed, 4 insertions, 4 deletions
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)