diff options
| author | Roy Marples <roy@marples.name> | 2016-03-17 14:35:13 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-03-17 14:35:13 +0000 |
| commit | eeda296867934185dc105385d0ae4636179c3e10 (patch) | |
| tree | 1230d4bc388e669baacffbd775dce3617b8ab3f1 /dhcpcd.c | |
| parent | 069d6a3e2459a12c339d985227846330c287e5e0 (diff) | |
| download | dhcpcd-eeda296867934185dc105385d0ae4636179c3e10.tar.xz | |
Make eloop a tad easier to use.
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1369,7 +1369,7 @@ dhcpcd_handleargs(struct dhcpcd_ctx *ctx, struct fd_list *fd, return control_queue(fd, UNCONST(fd->ctx->cffile), strlen(fd->ctx->cffile) + 1, 0); } else if (strcmp(*argv, "--getinterfaces") == 0) { - eloop_event_add(fd->ctx->eloop, fd->fd, NULL, NULL, + eloop_event_add_w(fd->ctx->eloop, fd->fd, dhcpcd_getinterfaces, fd); return 0; } else if (strcmp(*argv, "--listen") == 0) { @@ -1910,7 +1910,7 @@ printpidfile: /* Start handling kernel messages for interfaces, addreses and * routes. */ - eloop_event_add(ctx.eloop, ctx.link_fd, handle_link, &ctx, NULL, NULL); + eloop_event_add(ctx.eloop, ctx.link_fd, handle_link, &ctx); /* Start any dev listening plugin which may want to * change the interface name provided by the kernel */ |
