diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-22 17:47:57 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-12-22 17:47:57 +0000 |
commit | 404b1fb4734de4884e082d9ae3217c3c3a3ccce0 (patch) | |
tree | 04ca70288d05ff96c057c026579b9cec1cd18431 /cpukit/libnetworking/netinet | |
parent | 2008-12-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-404b1fb4734de4884e082d9ae3217c3c3a3ccce0.tar.bz2 |
Add missing initializers.
Diffstat (limited to 'cpukit/libnetworking/netinet')
-rw-r--r-- | cpukit/libnetworking/netinet/if_ether.c | 6 | ||||
-rw-r--r-- | cpukit/libnetworking/netinet/ip_divert.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libnetworking/netinet/if_ether.c b/cpukit/libnetworking/netinet/if_ether.c index 0c69ff2395..080d1618f3 100644 --- a/cpukit/libnetworking/netinet/if_ether.c +++ b/cpukit/libnetworking/netinet/if_ether.c @@ -92,7 +92,7 @@ struct llinfo_arp { static LIST_HEAD(, llinfo_arp) llinfo_arp; -struct ifqueue arpintrq = {0, 0, 0, 50}; +struct ifqueue arpintrq = {0, 0, 0, 50, 0}; static int arp_inuse, arp_allocated; static int arp_maxtries = 5; @@ -146,7 +146,7 @@ arp_rtrequest(int req, struct rtentry *rt, struct sockaddr *sa) { struct sockaddr *gate; struct llinfo_arp *la; - static struct sockaddr_dl null_sdl = {sizeof(null_sdl), AF_LINK}; + static struct sockaddr_dl null_sdl = {sizeof(null_sdl), AF_LINK, 0, 0, 0, 0, 0, { 0 } }; static int arpinit_done; if (!arpinit_done) { @@ -598,7 +598,7 @@ static struct llinfo_arp * arplookup(u_long addr, int create, int proxy) { struct rtentry *rt; - static struct sockaddr_inarp sin = {sizeof(sin), AF_INET }; + static struct sockaddr_inarp sin = {sizeof(sin), AF_INET, 0, { 0 }, { 0 }, 0, 0 }; const char *why = 0; sin.sin_len = sizeof(sin); diff --git a/cpukit/libnetworking/netinet/ip_divert.c b/cpukit/libnetworking/netinet/ip_divert.c index 0268d4e441..e67e53d414 100644 --- a/cpukit/libnetworking/netinet/ip_divert.c +++ b/cpukit/libnetworking/netinet/ip_divert.c @@ -88,7 +88,7 @@ static u_long div_sendspace = DIVSNDQ; /* XXX sysctl ? */ static u_long div_recvspace = DIVRCVQ; /* XXX sysctl ? */ /* Optimization: have this preinitialized */ -static struct sockaddr_in divsrc = { sizeof(divsrc), AF_INET }; +static struct sockaddr_in divsrc = { sizeof(divsrc), AF_INET, 0, 0, { 0 } }; /* Internal functions */ |