summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-03-17 14:35:13 +0000
committerRoy Marples <roy@marples.name>2016-03-17 14:35:13 +0000
commiteeda296867934185dc105385d0ae4636179c3e10 (patch)
tree1230d4bc388e669baacffbd775dce3617b8ab3f1 /dhcpcd.c
parent069d6a3e2459a12c339d985227846330c287e5e0 (diff)
downloaddhcpcd-eeda296867934185dc105385d0ae4636179c3e10.tar.xz
Make eloop a tad easier to use.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 079e0b14..494c85e6 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -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 */