From 81c61790d5927dc6ca168b2183000a3efc7bc493 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 13 Dec 2006 17:05:50 -0800 Subject: [PATCH] Eliminate trailing whitespace Signed-off-by: Stephen Hemminger --- genl/ctrl.c | 2 +- ip/iprule.c | 2 +- ip/xfrm_monitor.c | 8 ++++---- netem/maketable.c | 2 +- tc/f_u32.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/genl/ctrl.c b/genl/ctrl.c index fe010f3..ee5acb8 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 cb45f02..0aa115a 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 925e229..bdbf4a6 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 dccd254..a5452b6 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; diff --git a/tc/f_u32.c b/tc/f_u32.c index fe31ec0..1ac671b 100644 --- a/tc/f_u32.c +++ b/tc/f_u32.c @@ -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) { -- 2.39.2