From 14a1c9175257f73e936a68ba68d3541278c0e52a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 26 Aug 2000 04:41:10 +0000 Subject: Stop shadowing parameter. --- libiptc/libiptc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libiptc') diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 68b5a149..5bbd9092 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -908,7 +908,7 @@ TC_INSERT_ENTRY(const IPT_CHAINLABEL chain, unsigned int chainindex, offset; STRUCT_ENTRY_TARGET old; struct chain_cache *c; - STRUCT_ENTRY *e; + STRUCT_ENTRY *tmp; int ret; iptc_fn = TC_INSERT_ENTRY; @@ -919,8 +919,8 @@ TC_INSERT_ENTRY(const IPT_CHAINLABEL chain, chainindex = entry2index(*handle, c->start); - e = index2entry(*handle, chainindex + rulenum); - if (!e || e > c->end) { + tmp = index2entry(*handle, chainindex + rulenum); + if (!tmp || tmp > c->end) { errno = E2BIG; return 0; } @@ -947,7 +947,7 @@ TC_REPLACE_ENTRY(const IPT_CHAINLABEL chain, unsigned int chainindex, offset; STRUCT_ENTRY_TARGET old; struct chain_cache *c; - STRUCT_ENTRY *e; + STRUCT_ENTRY *tmp; int ret; iptc_fn = TC_REPLACE_ENTRY; @@ -959,8 +959,8 @@ TC_REPLACE_ENTRY(const IPT_CHAINLABEL chain, chainindex = entry2index(*handle, c->start); - e = index2entry(*handle, chainindex + rulenum); - if (!e || e >= c->end) { + tmp = index2entry(*handle, chainindex + rulenum); + if (!tmp || tmp >= c->end) { errno = E2BIG; return 0; } -- cgit v1.2.3