]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: silence two compiler warnings
authorFlorian Westphal <fw@strlen.de>
Sun, 17 Jun 2018 20:35:30 +0000 (22:35 +0200)
committerFlorian Westphal <fw@strlen.de>
Sun, 17 Jun 2018 20:41:35 +0000 (22:41 +0200)
commit856a875aeb20708e1af2b6d5ca956df25e34f073
treedab9b2f57f7ab920e6fe863016fbb97a6ce3de0a
parentae6e159a78c1431d3382af192c509d80fab25ce4
xtables: silence two compiler warnings

inlined from ‘do_commandarp’ at xtables-arp.c:1198:16:
xtables-arp.c:844:2: warning: ‘strncpy’ specified bound 29 equals destination size [-Wstringop-truncation]
  strncpy(target->t->u.user.name, jumpto, sizeof(target->t->u.user.name));
xtables-eb-translate.c: In function ‘do_commandeb_xlate’:
xtables-eb-translate.c:285:6: warning: unused variable ‘chcounter’ [-Wunused-variable]
  int chcounter = 0; /* Needed for -C */
      ^~~~~~~~~
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-arp.c
iptables/xtables-eb-translate.c