Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Use LIST_HEAD_INITIALIZER(), for correctness sake.



details:   https://anonhg.NetBSD.org/src/rev/46ae14d303c0
branches:  trunk
changeset: 494333:46ae14d303c0
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jul 05 18:45:26 2000 +0000

description:
Use LIST_HEAD_INITIALIZER(), for correctness sake.

diffstat:

 sys/netinet/ip_encap.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4effac208f3c -r 46ae14d303c0 sys/netinet/ip_encap.c
--- a/sys/netinet/ip_encap.c    Wed Jul 05 18:42:19 2000 +0000
+++ b/sys/netinet/ip_encap.c    Wed Jul 05 18:45:26 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_encap.c,v 1.1 2000/04/19 06:30:54 itojun Exp $      */
+/*     $NetBSD: ip_encap.c,v 1.2 2000/07/05 18:45:26 thorpej Exp $     */
 /*     $KAME: ip_encap.c,v 1.30 2000/04/19 04:29:37 itojun Exp $       */
 
 /*
@@ -128,7 +128,7 @@
 static void encap_fillarg __P((struct mbuf *, const struct encaptab *));
 
 /* rely upon BSS initialization */
-LIST_HEAD(, encaptab) encaptab;
+LIST_HEAD(, encaptab) encaptab = LIST_HEAD_INITIALIZER(&encaptab);
 
 void
 encap_init()



Home | Main Index | Thread Index | Old Index