forked from Imagelibrary/rtems
Add missing initializers.
This commit is contained in:
@@ -717,7 +717,7 @@ static struct nfsstats {
|
||||
* during the system lifetime
|
||||
*/
|
||||
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
|
||||
|
||||
@@ -1149,7 +1149,7 @@ rtems_event_set events;
|
||||
ListNode newList;
|
||||
size_t size;
|
||||
rtems_id q = 0;
|
||||
ListNodeRec listHead = {0};
|
||||
ListNodeRec listHead = {0, 0};
|
||||
unsigned long epoch = RPCIOD_EPOCH_SECS * ticksPerSec;
|
||||
unsigned long max_period = RPCIOD_RETX_CAP_S * ticksPerSec;
|
||||
rtems_status_code status;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user