diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-05-04 21:45:07 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-05-04 21:45:07 +0200 |
commit | 2916bdda810591ecc8f3283b68136ec79f6c2377 (patch) | |
tree | f58a262182a0f66dbaa37883fdae19c3928ac8d6 | |
parent | 7219d88329cabcdd05df9477af6e2dee007b60b1 (diff) |
Remove unused variables (warnings fixed)
-rw-r--r-- | lib/parse.c | 2 | ||||
-rw-r--r-- | lib/session.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse.c b/lib/parse.c index 2cbd30e..45937f0 100644 --- a/lib/parse.c +++ b/lib/parse.c @@ -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 " diff --git a/lib/session.c b/lib/session.c index 2ff463e..01a2413 100644 --- a/lib/session.c +++ b/lib/session.c @@ -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]) { |