mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-24 10:35:03 +08:00
static objects are initialized to 0 by default, so don't explicity do this.
This commit is contained in:
parent
079649b0b1
commit
35a8183fb9
@ -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
2
dhcp.c
@ -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;
|
||||
|
6
dhcpcd.c
6
dhcpcd.c
@ -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
14
eloop.c
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user