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.
This commit is contained in:
Коренберг Марк (ноутбук дома) 2012-09-09 22:30:20 +06:00 committed by Коренберг Марк (дома)
parent 1fa61d1892
commit 787f14dbe3

View file

@ -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)