aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2004-03-15 08:29:22 +0000
commitc7bda1ce659294d6e22c06e087f6f265983c7578 (patch)
tree4c6d2217f4d8306c59cf1096f8664e1cfd167213 /networking/libiproute/iproute.c
parent8854004b41065b3d081af7f3df13a100b0c8bfbe (diff)
downloadbusybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2
busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r--networking/libiproute/iproute.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index 0fdf7987e..7adbfcd61 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -76,7 +76,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
76 inet_prefix src; 76 inet_prefix src;
77 int host_len = -1; 77 int host_len = -1;
78 SPRINT_BUF(b1); 78 SPRINT_BUF(b1);
79 79
80 80
81 if (n->nlmsg_type != RTM_NEWROUTE && n->nlmsg_type != RTM_DELROUTE) { 81 if (n->nlmsg_type != RTM_NEWROUTE && n->nlmsg_type != RTM_DELROUTE) {
82 fprintf(stderr, "Not a route: %08x %08x %08x\n", 82 fprintf(stderr, "Not a route: %08x %08x %08x\n",
@@ -228,7 +228,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
228 fprintf(fp, "from 0/%u ", r->rtm_src_len); 228 fprintf(fp, "from 0/%u ", r->rtm_src_len);
229 } 229 }
230 if (tb[RTA_GATEWAY] && filter.rvia.bitlen != host_len) { 230 if (tb[RTA_GATEWAY] && filter.rvia.bitlen != host_len) {
231 fprintf(fp, "via %s ", 231 fprintf(fp, "via %s ",
232 format_host(r->rtm_family, 232 format_host(r->rtm_family,
233 RTA_PAYLOAD(tb[RTA_GATEWAY]), 233 RTA_PAYLOAD(tb[RTA_GATEWAY]),
234 RTA_DATA(tb[RTA_GATEWAY]), 234 RTA_DATA(tb[RTA_GATEWAY]),
@@ -242,7 +242,7 @@ static int print_route(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
242 /* Do not use format_host(). It is our local addr 242 /* Do not use format_host(). It is our local addr
243 and symbolic name will not be useful. 243 and symbolic name will not be useful.
244 */ 244 */
245 fprintf(fp, " src %s ", 245 fprintf(fp, " src %s ",
246 rt_addr_n2a(r->rtm_family, 246 rt_addr_n2a(r->rtm_family,
247 RTA_PAYLOAD(tb[RTA_PREFSRC]), 247 RTA_PAYLOAD(tb[RTA_PREFSRC]),
248 RTA_DATA(tb[RTA_PREFSRC]), 248 RTA_DATA(tb[RTA_PREFSRC]),
@@ -665,7 +665,7 @@ static int iproute_get(int argc, char **argv)
665 req.r.rtm_src_len = 0; 665 req.r.rtm_src_len = 0;
666 req.r.rtm_dst_len = 0; 666 req.r.rtm_dst_len = 0;
667 req.r.rtm_tos = 0; 667 req.r.rtm_tos = 0;
668 668
669 while (argc > 0) { 669 while (argc > 0) {
670 switch (compare_string_array(options, *argv)) { 670 switch (compare_string_array(options, *argv)) {
671 case 0: /* from */ 671 case 0: /* from */