]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
ip: addrlabel fix set never used warning
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 20 Jun 2011 21:33:55 +0000 (14:33 -0700)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 20 Jun 2011 21:33:55 +0000 (14:33 -0700)
ip/ipaddrlabel.c

index 95e813df7e07c7bb3a0cceb36301ef462776dde9..a71855d75d200b1663cd6a99107fcbfce972cf4f 100644 (file)
@@ -59,7 +59,6 @@ int print_addrlabel(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg
        FILE *fp = (FILE*)arg;
        struct ifaddrlblmsg *ifal = NLMSG_DATA(n);
        int len = n->nlmsg_len;
-       int host_len = -1;
        struct rtattr *tb[IFAL_MAX+1];
        char abuf[256];
 
@@ -72,11 +71,6 @@ int print_addrlabel(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg
 
        parse_rtattr(tb, IFAL_MAX, IFAL_RTA(ifal), len);
 
-       if (ifal->ifal_family == AF_INET)
-               host_len = 32;
-       else if (ifal->ifal_family == AF_INET6)
-               host_len = 128;
-
        if (n->nlmsg_type == RTM_DELADDRLABEL)
                fprintf(fp, "Deleted ");