From: Roy Marples Date: Tue, 5 Nov 2019 16:22:39 +0000 (+0000) Subject: dev: remove pointless cast X-Git-Tag: v8.1.2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a738a4c48d3c9516fb9d9c0bd900f3206256d5be;p=thirdparty%2Fdhcpcd.git dev: remove pointless cast --- diff --git a/src/dev.c b/src/dev.c index d84a42c6..3f67693c 100644 --- a/src/dev.c +++ b/src/dev.c @@ -97,8 +97,7 @@ dev_start2(struct dhcpcd_ctx *ctx, const char *name) logerrx("dlopen: %s", dlerror()); return -1; } - fptr = (void (*)(struct dev *, const struct dev_dhcpcd *)) - dlsym(h, "dev_init"); + fptr = dlsym(h, "dev_init"); if (fptr == NULL) { logerrx("dlsym: %s", dlerror()); dlclose(h);