]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix some clang analyzer errors
authorRoy Marples <roy@marples.name>
Thu, 11 Sep 2014 11:02:37 +0000 (11:02 +0000)
committerRoy Marples <roy@marples.name>
Thu, 11 Sep 2014 11:02:37 +0000 (11:02 +0000)
if-linux.c
script.c

index 912eda127e2486bd5498b7cb96615446fc2d36bb..61bfd9b09205e9b1db1228432ad3f65edcbc3b1a 100644 (file)
@@ -627,7 +627,7 @@ link_neigh(struct dhcpcd_ctx *ctx, __unused struct interface *ifp,
 #endif
 
 static int
-link_netlink(struct dhcpcd_ctx *ctx, __unused struct interface *_ifp,
+link_netlink(struct dhcpcd_ctx *ctx, struct interface *ifp,
     struct nlmsghdr *nlm)
 {
        int r;
@@ -635,7 +635,6 @@ link_netlink(struct dhcpcd_ctx *ctx, __unused struct interface *_ifp,
        struct rtattr *rta, *hwaddr;
        struct ifinfomsg *ifi;
        char ifn[IF_NAMESIZE + 1];
-       struct interface *ifp;
 
        r = link_route(ctx, ifp, nlm);
        if (r != 0)
index 7fcf8c546c847c9cd0adf29b8e4d2d32dfbeeeab..c931d3bae800d72811179a554f60ea5400a590d9 100644 (file)
--- a/script.c
+++ b/script.c
@@ -657,7 +657,6 @@ script_runreason(const struct interface *ifp, const char *reason)
                        goto out;
                }
        }
-       ep = env;
        if (svcname) {
                e = strlen(SVCNAME) + strlen(svcname) + 2;
                env[++elen] = malloc(e);