]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile for dev manager.
authorRoy Marples <roy@marples.name>
Thu, 4 Sep 2014 19:32:25 +0000 (19:32 +0000)
committerRoy Marples <roy@marples.name>
Thu, 4 Sep 2014 19:32:25 +0000 (19:32 +0000)
dev.c

diff --git a/dev.c b/dev.c
index b32f508684dadd398175b54a765adbff70d8adb0..ca179762679b00b04da603e39245a6ac78d65299 100644 (file)
--- a/dev.c
+++ b/dev.c
@@ -62,7 +62,7 @@ dev_stop(struct dhcpcd_ctx *ctx, int stop)
        if (ctx->dev) {
                if (stop)
                        syslog(LOG_DEBUG, "dev: unloaded %s", ctx->dev->name);
-               eloop_event_delete(ctx->eloop, ctx->dev_fd);
+               eloop_event_delete(ctx->eloop, ctx->dev_fd, 0);
                ctx->dev->stop();
                free(ctx->dev);
                ctx->dev = NULL;
@@ -168,7 +168,7 @@ 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) == -1)
+                       ctx->dev_fd, dev_handle_data, ctx, NULL, NULL) == -1)
                {
                        syslog(LOG_ERR, "%s: eloop_event_add: %m", __func__);
                        dev_stop(ctx, 1);