Add missing initializers.

This commit is contained in:
Ralf Corsepius
2008-12-22 17:47:57 +00:00
parent 6678cdf30b
commit 404b1fb473
4 changed files with 6 additions and 6 deletions

View File

@@ -717,7 +717,7 @@ static struct nfsstats {
* during the system lifetime * during the system lifetime
*/ */
u_short fs_ids; u_short fs_ids;
} nfsGlob = {0/* IMPORTANT */}; } nfsGlob = {0, 0, 0, 0, 0, 0};
/* /*
* Global variable to tune the 'st_blksize' (stat(2)) value this nfs * Global variable to tune the 'st_blksize' (stat(2)) value this nfs

View File

@@ -1149,7 +1149,7 @@ rtems_event_set events;
ListNode newList; ListNode newList;
size_t size; size_t size;
rtems_id q = 0; rtems_id q = 0;
ListNodeRec listHead = {0}; ListNodeRec listHead = {0, 0};
unsigned long epoch = RPCIOD_EPOCH_SECS * ticksPerSec; unsigned long epoch = RPCIOD_EPOCH_SECS * ticksPerSec;
unsigned long max_period = RPCIOD_RETX_CAP_S * ticksPerSec; unsigned long max_period = RPCIOD_RETX_CAP_S * ticksPerSec;
rtems_status_code status; rtems_status_code status;

View File

@@ -92,7 +92,7 @@ struct llinfo_arp {
static LIST_HEAD(, llinfo_arp) 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_inuse, arp_allocated;
static int arp_maxtries = 5; static int arp_maxtries = 5;
@@ -146,7 +146,7 @@ arp_rtrequest(int req, struct rtentry *rt, struct sockaddr *sa)
{ {
struct sockaddr *gate; struct sockaddr *gate;
struct llinfo_arp *la; 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; static int arpinit_done;
if (!arpinit_done) { if (!arpinit_done) {
@@ -598,7 +598,7 @@ static struct llinfo_arp *
arplookup(u_long addr, int create, int proxy) arplookup(u_long addr, int create, int proxy)
{ {
struct rtentry *rt; 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; const char *why = 0;
sin.sin_len = sizeof(sin); sin.sin_len = sizeof(sin);

View File

@@ -88,7 +88,7 @@ static u_long div_sendspace = DIVSNDQ; /* XXX sysctl ? */
static u_long div_recvspace = DIVRCVQ; /* XXX sysctl ? */ static u_long div_recvspace = DIVRCVQ; /* XXX sysctl ? */
/* Optimization: have this preinitialized */ /* 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 */ /* Internal functions */