(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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205729
@ -59,7 +59,7 @@ struct tdef {
|
|||||||
SLIST_ENTRY(tdef) link;
|
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 int do_typedef = 0;
|
||||||
|
|
||||||
static void print_node(SmiNode *n, u_int level);
|
static void print_node(SmiNode *n, u_int level);
|
||||||
|
@ -134,7 +134,7 @@ struct macro {
|
|||||||
LIST_ENTRY(macro) link;
|
LIST_ENTRY(macro) link;
|
||||||
int perm;
|
int perm;
|
||||||
};
|
};
|
||||||
static LIST_HEAD(, macro) macros = LIST_HEAD_INITIALIZER(¯os);
|
static LIST_HEAD(, macro) macros = LIST_HEAD_INITIALIZER(macros);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
TOK_EOF = 0200,
|
TOK_EOF = 0200,
|
||||||
|
Loading…
Reference in New Issue
Block a user