From: Roy Marples Date: Wed, 30 Jul 2014 10:03:14 +0000 (+0000) Subject: Remove some unused variables X-Git-Tag: v6.4.3~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e41613f338bb184b0f4ebbd0c3175c3d030723b5;p=thirdparty%2Fdhcpcd.git Remove some unused variables --- diff --git a/dhcp6.c b/dhcp6.c index e77f793e..b1f814aa 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -1601,8 +1601,6 @@ dhcp6_findna(struct interface *ifp, uint16_t ot, const uint8_t *iaid, { struct dhcp6_state *state; const struct dhcp6_option *o; - const uint8_t *p; - struct in6_addr in6; struct ipv6_addr *a; char iabuf[INET6_ADDRSTRLEN]; const char *ia; @@ -1626,9 +1624,7 @@ dhcp6_findna(struct interface *ifp, uint16_t ot, const uint8_t *iaid, ifp->name); continue; } - p = D6_COPTION_DATA(o); iap = (const struct dhcp6_ia_addr *)D6_COPTION_DATA(o); - p += sizeof(in6); a = dhcp6_findaddr(ifp, &iap->addr); if (a == NULL) { a = calloc(1, sizeof(*a)); @@ -2148,7 +2144,6 @@ dhcp6_ifdelegateaddr(struct interface *ifp, struct ipv6_addr *prefix, int pfxlen; /* RFC6603 Section 4.2 */ - pfxlen = 0; /* appease gcc */ if (strcmp(ifp->name, ifs->name) == 0) { if (prefix->prefix_exclude_len == 0) { /* Don't spam the log automatically */