diff options
| author | Roy Marples <roy@marples.name> | 2008-10-06 12:45:32 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-10-06 12:45:32 +0000 |
| commit | 35a8183fb9d41cd62d1b1689ffe9953fff677aa9 (patch) | |
| tree | 0be5db98c80287550e7a45d0f3f96a1e93b383c5 /eloop.c | |
| parent | 079649b0b1b5e074c745c84f9ebf3fd504c9a628 (diff) | |
| download | dhcpcd-35a8183fb9d41cd62d1b1689ffe9953fff677aa9.tar.xz | |
static objects are initialized to 0 by default, so don't explicity do this.
Diffstat (limited to 'eloop.c')
| -rw-r--r-- | eloop.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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) |
