(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. Approved by: harti@
This commit is contained in:
parent
cde587816c
commit
5a64472b2a
@ -59,7 +59,7 @@ struct tdef {
|
||||
SLIST_ENTRY(tdef) link;
|
||||
};
|
||||
|
||||
static SLIST_HEAD(, tdef) tdefs = SLIST_HEAD_INITIALIZER(tdef);
|
||||
static SLIST_HEAD(, tdef) tdefs = SLIST_HEAD_INITIALIZER(tdefs);
|
||||
static int do_typedef = 0;
|
||||
|
||||
static void print_node(SmiNode *n, u_int level);
|
||||
|
@ -134,7 +134,7 @@ struct macro {
|
||||
LIST_ENTRY(macro) link;
|
||||
int perm;
|
||||
};
|
||||
static LIST_HEAD(, macro) macros = LIST_HEAD_INITIALIZER(¯os);
|
||||
static LIST_HEAD(, macro) macros = LIST_HEAD_INITIALIZER(macros);
|
||||
|
||||
enum {
|
||||
TOK_EOF = 0200,
|
||||
|
Loading…
Reference in New Issue
Block a user