From: Roy Marples Date: Thu, 4 Sep 2014 19:32:25 +0000 (+0000) Subject: Fix compile for dev manager. X-Git-Tag: v6.4.4~43 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=6f4828849f0f25ad9d651008c00170a2990be8ec;p=thirdparty%2Fdhcpcd.git Fix compile for dev manager. --- diff --git a/dev.c b/dev.c index b32f5086..ca179762 100644 --- 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);