(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:
Antoine Brodin 2010-03-27 13:43:18 +00:00
parent cde587816c
commit 5a64472b2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205729
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -134,7 +134,7 @@ struct macro {
LIST_ENTRY(macro) link;
int perm;
};
static LIST_HEAD(, macro) macros = LIST_HEAD_INITIALIZER(&macros);
static LIST_HEAD(, macro) macros = LIST_HEAD_INITIALIZER(macros);
enum {
TOK_EOF = 0200,