# endif
#endif
-static struct rt *routes = NULL;
+static struct rt *routes;
static int
exec_script(char *const *argv, char *const *env)
/* 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;
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 {
#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)
#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)