static objects are initialized to 0 by default, so don't explicity do this.

This commit is contained in:
Roy Marples 2008-10-06 12:45:32 +00:00
parent 079649b0b1
commit 35a8183fb9
5 changed files with 15 additions and 15 deletions

View File

@ -59,7 +59,7 @@
# endif
#endif
static struct rt *routes = NULL;
static struct rt *routes;
static int
exec_script(char *const *argv, char *const *env)

2
dhcp.c
View File

@ -56,7 +56,7 @@
/* Our aggregate option buffer.
* We ONLY use this when options are split, which for most purposes is
* practically never. See RFC3396 for details. */
static uint8_t *dhcp_opt_buffer = NULL;
static uint8_t *dhcp_opt_buffer;
struct dhcp_opt {
uint8_t option;

View File

@ -73,10 +73,10 @@ char **ifav = NULL;
int ifdc = 0;
char **ifdv = NULL;
static char **ifv = NULL;
static int ifc = 0;
static char **ifv;
static int ifc;
static int linkfd = -1;
static char *cffile = NULL;
static char *cffile;
static char *pidfile;
struct dhcp_op {

14
eloop.c
View File

@ -37,26 +37,26 @@
#include "common.h"
#include "eloop.h"
static struct timeval now = {0, 0};
static struct timeval now;
static struct event {
int fd;
void (*callback)(void *);
void *arg;
struct event *next;
} *events = NULL;
static struct event *free_events = NULL;
} *events;
static struct event *free_events;
static struct timeout {
struct timeval when;
void (*callback)(void *);
void *arg;
struct timeout *next;
} *timeouts = NULL;
static struct timeout *free_timeouts = NULL;
} *timeouts;
static struct timeout *free_timeouts;
static struct pollfd *fds = NULL;
static size_t fds_len = 0;
static struct pollfd *fds;
static size_t fds_len;
void
add_event(int fd, void (*callback)(void *), void *arg)

View File

@ -68,9 +68,9 @@
#define BUFFERLEN 256
static void (*nl_carrier)(const char *) = NULL;
static void (*nl_add)(const char *) = NULL;
static void (*nl_remove)(const char *) = NULL;
static void (*nl_carrier)(const char *);
static void (*nl_add)(const char *);
static void (*nl_remove)(const char *);
int
if_wireless(const char *ifname)