aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jarosch <thomas.jarosch@intra2net.com>2011-11-23 22:13:23 +0100
committerStephen Hemminger <shemminger@vyatta.com>2011-11-23 14:46:21 -0800
commita3da01c519ed13714ad80be3a771e81ae10ea835 (patch)
tree918ee7667efcc8e7873e4bab70adfaa5b8dc5b08
parent9044a4547d73df5c41fd53c83e5ccc2a59200797 (diff)
downloadplatform_external_iproute2-a3da01c519ed13714ad80be3a771e81ae10ea835.tar.gz
platform_external_iproute2-a3da01c519ed13714ad80be3a771e81ae10ea835.tar.bz2
platform_external_iproute2-a3da01c519ed13714ad80be3a771e81ae10ea835.zip
tc: Remove unused variable 'res'.
Detected by cppcheck. Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
-rw-r--r--tc/m_ipt.c2
-rw-r--r--tc/m_xt_old.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/tc/m_ipt.c b/tc/m_ipt.c
index a73d400a..b8655f85 100644
--- a/tc/m_ipt.c
+++ b/tc/m_ipt.c
@@ -396,11 +396,9 @@ static int parse_ipt(struct action_util *a,int *argc_p,
char **argv = *argv_p;
int argc = 0, iargc = 0;
char k[16];
- int res = -1;
int size = 0;
int iok = 0, ok = 0;
__u32 hook = 0, index = 0;
- res = 0;
lib_dir = getenv("IPTABLES_LIB_DIR");
if (!lib_dir)
diff --git a/tc/m_xt_old.c b/tc/m_xt_old.c
index 3804d7f2..7ed7ecc7 100644
--- a/tc/m_xt_old.c
+++ b/tc/m_xt_old.c
@@ -215,11 +215,9 @@ static int parse_ipt(struct action_util *a,int *argc_p,
char **argv = *argv_p;
int argc = 0, iargc = 0;
char k[16];
- int res = -1;
int size = 0;
int iok = 0, ok = 0;
__u32 hook = 0, index = 0;
- res = 0;
set_lib_dir();