]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tc/m_xt_old.c
tc: replace magic constant 16 with #define
[mirror_iproute2.git] / tc / m_xt_old.c
index 20a6342b162b394a8e6e6495d4f428567b35f318..21d90877357c595eaa07048d486923bb5febf385 100644 (file)
@@ -13,7 +13,6 @@
 /*XXX: in the future (xtables 1.4.3?) get rid of everything tagged
  * as TC_CONFIG_XT_H */
 
-#include <syslog.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
@@ -214,7 +213,7 @@ static int parse_ipt(struct action_util *a, int *argc_p,
        int rargc = *argc_p;
        char **argv = *argv_p;
        int argc = 0, iargc = 0;
-       char k[16];
+       char k[FILTER_NAMESZ];
        int size = 0;
        int iok = 0, ok = 0;
        __u32 hook = 0, index = 0;
@@ -412,7 +411,7 @@ print_ipt(struct action_util *au, FILE * f, struct rtattr *arg)
                        __u32 index;
 
                        index = rta_getattr_u32(tb[TCA_IPT_INDEX]);
-                       fprintf(f, "\n\tindex %d", index);
+                       fprintf(f, "\n\tindex %u", index);
                }
 
                if (tb[TCA_IPT_CNT]) {