]> granicus.if.org Git - ipset/commitdiff
Remove unused variables (warnings fixed)
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 4 May 2012 19:45:07 +0000 (21:45 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 4 May 2012 19:45:07 +0000 (21:45 +0200)
lib/parse.c
lib/session.c

index 2cbd30e1003314a59eed0576f4a2a23e93bae368..45937f0091a4659c33cac353e90bdf11cb5b5793 100644 (file)
@@ -1554,6 +1554,8 @@ ipset_parse_iface(struct ipset_session *session,
        if (STREQ(str, "physdev:")) {
                offset = 8;
                err = ipset_data_set(data, IPSET_OPT_PHYSDEV, str);
+               if (err < 0)
+                       return err;
        }
        if (strlen(str + offset) > IFNAMSIZ - 1)
                return syntax_err("interface name '%s' is longer "
index 2ff463ed207d2004c7326a5636e076b793108edd..01a24137c5c6354cb4ba7ef9aa389831f292bdfd 100644 (file)
@@ -738,7 +738,6 @@ list_adt(struct ipset_session *session, struct nlattr *nla[])
        const struct ipset_data *data = session->data;
        const struct ipset_type *type;
        const struct ipset_arg *arg;
-       uint8_t family;
        int i, found = 0;
 
        D("enter");
@@ -750,7 +749,6 @@ list_adt(struct ipset_session *session, struct nlattr *nla[])
 
        if (type == NULL)
                return MNL_CB_ERROR;
-       family = ipset_data_family(data);
 
        for (i = IPSET_ATTR_UNSPEC + 1; i <= IPSET_ATTR_ADT_MAX; i++)
                if (nla[i]) {