diff options
author | rusty <rusty> | 2000-08-26 04:41:10 +0000 |
---|---|---|
committer | rusty <rusty> | 2000-08-26 04:41:10 +0000 |
commit | f008cc3b2fac5eef063ae1f82d21a8369e0f693c (patch) | |
tree | 7af1269f3a10ae2b0ce5725e9ef498e19612f1f3 /libiptc/libiptc.c | |
parent | b536206a996b5f2e6c6d9ef1b3c84ada50d8e232 (diff) |
Stop shadowing parameter.
Diffstat (limited to 'libiptc/libiptc.c')
-rw-r--r-- | libiptc/libiptc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index 68b5a14..5bbd909 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; } |