summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-08-30 18:55:09 +0000
committerchristos <christos@NetBSD.org>2006-08-30 18:55:09 +0000
commitda6e78aa677a72a7de3c2c35dde9c5aa2bd2dcd5 (patch)
tree0af1d74f4a30538574b218a5eaea577a2b7f9010 /sys/netinet
parentcddf6d88fb3c937f0bbc21b246d8f52d992580d2 (diff)
fix initializer
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_input.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 842c5fc6e02..a0c57e61804 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_input.c,v 1.228 2006/07/30 17:38:19 elad Exp $ */
+/* $NetBSD: ip_input.c,v 1.229 2006/08/30 18:55:09 christos Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.228 2006/07/30 17:38:19 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.229 2006/08/30 18:55:09 christos Exp $");
#include "opt_inet.h"
#include "opt_gateway.h"
@@ -445,7 +445,10 @@ ip_init(void)
#endif /* MBUFTRACE */
}
-struct sockaddr_in ipaddr = { sizeof(ipaddr), AF_INET };
+struct sockaddr_in ipaddr = {
+ .sin_len = sizeof(ipaddr),
+ .sin_family = AF_INET,
+};
struct route ipforward_rt;
/*