iptables plugin: fix implicit conversion warnings
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 1 Jun 2018 18:10:09 +0000 (20:10 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 1 Jun 2018 18:10:09 +0000 (20:10 +0200)
commite6dec3a203d017319a637d8a8b048879da158538
tree01999fd0dd85bcf7702eaecc77c8b671d71b4172
parent028736501ebf63ab9d70b8de8628f9b2fd25eb37
iptables plugin: fix implicit conversion warnings

  CC       src/iptables_la-iptables.lo
src/iptables.c:139:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
  table_len = strlen(table) + 1;
            ~ ~~~~~~~~~~~~~~^~~
src/iptables.c:147:29: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
  chain_len = strlen(chain) + 1;
            ~ ~~~~~~~~~~~~~~^~~
2 warnings generated.
src/iptables.c