Date: Sat, 27 Mar 2010 13:43:19 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r205729 - in head/contrib/bsnmp: gensnmpdef snmpd Message-ID: <201003271343.o2RDhJ5p000791@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Sat Mar 27 13:43:18 2010 New Revision: 205729 URL: http://svn.freebsd.org/changeset/base/205729 Log: (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@ Modified: head/contrib/bsnmp/gensnmpdef/gensnmpdef.c head/contrib/bsnmp/snmpd/config.c Modified: head/contrib/bsnmp/gensnmpdef/gensnmpdef.c ============================================================================== --- head/contrib/bsnmp/gensnmpdef/gensnmpdef.c Sat Mar 27 08:00:16 2010 (r205728) +++ head/contrib/bsnmp/gensnmpdef/gensnmpdef.c Sat Mar 27 13:43:18 2010 (r205729) @@ -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); Modified: head/contrib/bsnmp/snmpd/config.c ============================================================================== --- head/contrib/bsnmp/snmpd/config.c Sat Mar 27 08:00:16 2010 (r205728) +++ head/contrib/bsnmp/snmpd/config.c Sat Mar 27 13:43:18 2010 (r205729) @@ -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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003271343.o2RDhJ5p000791>