From 2916bdda810591ecc8f3283b68136ec79f6c2377 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Fri, 4 May 2012 21:45:07 +0200 Subject: Remove unused variables (warnings fixed) --- lib/parse.c | 2 ++ lib/session.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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]) { -- cgit v1.2.3