summaryrefslogtreecommitdiffstats
path: root/eloop.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-06 12:45:32 +0000
committerRoy Marples <roy@marples.name>2008-10-06 12:45:32 +0000
commit35a8183fb9d41cd62d1b1689ffe9953fff677aa9 (patch)
tree0be5db98c80287550e7a45d0f3f96a1e93b383c5 /eloop.c
parent079649b0b1b5e074c745c84f9ebf3fd504c9a628 (diff)
downloaddhcpcd-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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/eloop.c b/eloop.c
index 4b9b6b6a..a2432cd3 100644
--- a/eloop.c
+++ b/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)