]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on Linux.
authorRoy Marples <roy@marples.name>
Wed, 23 Mar 2016 22:03:16 +0000 (22:03 +0000)
committerRoy Marples <roy@marples.name>
Wed, 23 Mar 2016 22:03:16 +0000 (22:03 +0000)
dev.c

diff --git a/dev.c b/dev.c
index 297538ac79763e10254a9f3e807a5a78e1b46f2d..cbf976267d9fa16ba579d46a8364750359193e20 100644 (file)
--- a/dev.c
+++ b/dev.c
@@ -174,8 +174,8 @@ dev_start(struct dhcpcd_ctx *ctx)
 
        ctx->dev_fd = dev_start1(ctx);
        if (ctx->dev_fd != -1) {
-               if (eloop_event_add(ctx->eloop,
-                       ctx->dev_fd, dev_handle_data, ctx, NULL, NULL) == -1)
+               if (eloop_event_add(ctx->eloop, ctx->dev_fd,
+                   dev_handle_data, ctx) == -1)
                {
                        logger(ctx, LOG_ERR,
                            "%s: eloop_event_add: %m", __func__);