diff options
-rw-r--r-- | genl/ctrl.c | 2 | ||||
-rw-r--r-- | ip/iprule.c | 2 | ||||
-rw-r--r-- | ip/xfrm_monitor.c | 8 | ||||
-rw-r--r-- | netem/maketable.c | 2 | ||||
-rw-r--r-- | tc/f_u32.c | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/genl/ctrl.c b/genl/ctrl.c index fe010f3f..ee5acb89 100644 --- a/genl/ctrl.c +++ b/genl/ctrl.c @@ -162,7 +162,7 @@ static int print_ctrl(const struct sockaddr_nl *who, struct nlmsghdr *n, int len = n->nlmsg_len; struct rtattr *attrs; FILE *fp = (FILE *) arg; - __u32 ctrl_v = 0x1; + __u32 ctrl_v = 0x1; if (n->nlmsg_type != GENL_ID_CTRL) { fprintf(stderr, "Not a controller message, nlmsg_len=%d " diff --git a/ip/iprule.c b/ip/iprule.c index cb45f02e..0aa115af 100644 --- a/ip/iprule.c +++ b/ip/iprule.c @@ -138,7 +138,7 @@ int print_rule(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) if (tb[RTA_FWMASK] && (mask = *(__u32*)RTA_DATA(tb[RTA_FWMASK])) != 0xFFFFFFFF) fprintf(fp, "fwmark 0x%x/0x%x ", mark, mask); - else + else fprintf(fp, "fwmark 0x%x ", mark); } diff --git a/ip/xfrm_monitor.c b/ip/xfrm_monitor.c index 925e229c..bdbf4a67 100644 --- a/ip/xfrm_monitor.c +++ b/ip/xfrm_monitor.c @@ -176,12 +176,12 @@ static int xfrm_ae_print(const struct sockaddr_nl *who, xfrm_ae_flags_print(id->flags, arg); fprintf(fp,"\n\t"); memset(abuf, '\0', sizeof(abuf)); - fprintf(fp, "src %s ", rt_addr_n2a(id->sa_id.family, - sizeof(id->saddr), &id->saddr, + fprintf(fp, "src %s ", rt_addr_n2a(id->sa_id.family, + sizeof(id->saddr), &id->saddr, abuf, sizeof(abuf))); memset(abuf, '\0', sizeof(abuf)); - fprintf(fp, "dst %s ", rt_addr_n2a(id->sa_id.family, - sizeof(id->sa_id.daddr), &id->sa_id.daddr, + fprintf(fp, "dst %s ", rt_addr_n2a(id->sa_id.family, + sizeof(id->sa_id.daddr), &id->sa_id.daddr, abuf, sizeof(abuf))); fprintf(fp, " reqid 0x%x", id->reqid); fprintf(fp, " protocol %s ", strxf_proto(id->sa_id.proto)); diff --git a/netem/maketable.c b/netem/maketable.c index dccd2546..a5452b61 100644 --- a/netem/maketable.c +++ b/netem/maketable.c @@ -192,7 +192,7 @@ printtable(const short *table, int limit) } } -int +int main(int argc, char **argv) { FILE *fp; @@ -947,7 +947,7 @@ static int u32_parse_opt(struct filter_util *qu, char *handle, int argc, char ** } /* We dont necessarily need class/flowids */ - if (terminal_ok) + if (terminal_ok) sel.sel.flags |= TC_U32_TERMINAL; if (order) { |