]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
dev: remove pointless cast
authorRoy Marples <roy@marples.name>
Tue, 5 Nov 2019 16:22:39 +0000 (16:22 +0000)
committerRoy Marples <roy@marples.name>
Tue, 5 Nov 2019 16:22:39 +0000 (16:22 +0000)
src/dev.c

index d84a42c6e627bf93fb0be82847d892d5c45700be..3f67693c81bc6fe10bf851ae60ef79a346dd2cf5 100644 (file)
--- 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);