aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-26 10:47:26 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-26 10:47:26 +0000
commitab1878245ca6d53e5f9477904b660295ae7de8dd (patch)
tree059544c00e15d169c2540212d9d5f737afc7349b /networking/libiproute
parentc58fd15db5563335a648edb9bf44aa2a8fa72abb (diff)
downloadbusybox-w32-ab1878245ca6d53e5f9477904b660295ae7de8dd.tar.gz
busybox-w32-ab1878245ca6d53e5f9477904b660295ae7de8dd.tar.bz2
busybox-w32-ab1878245ca6d53e5f9477904b660295ae7de8dd.zip
* uniq.c: remove unneeded include and use short boilerplate.
* coreutils.h: remove prototype of non-existing xgetoptfile_sort_uniq and add boilerplate. * networking/{ipaddr,ip,iplink,iproute,iptunnel}.c: touch includes and use short boilerplate. * libiproute/iproute.c: rename round to avoid clashes with older SuSE gcc and use short boilerplate.
Diffstat (limited to 'networking/libiproute')
-rw-r--r--networking/libiproute/iproute.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index fabab5b7a..cc229c206 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -1,10 +1,7 @@
1/* 1/*
2 * iproute.c "ip route". 2 * iproute.c "ip route".
3 * 3 *
4 * This program is free software; you can redistribute it and/or 4 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 * 5 *
9 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 6 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
10 * 7 *
@@ -588,7 +585,7 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
588 } 585 }
589 586
590 if (flush) { 587 if (flush) {
591 int round = 0; 588 int _round = 0;
592 char flushb[4096-512]; 589 char flushb[4096-512];
593 590
594 if (filter.tb == -1) { 591 if (filter.tb == -1) {
@@ -614,14 +611,14 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
614 return -1; 611 return -1;
615 } 612 }
616 if (filter.flushed == 0) { 613 if (filter.flushed == 0) {
617 if (round == 0) { 614 if (_round == 0) {
618 if (filter.tb != -1 || do_ipv6 == AF_INET6) 615 if (filter.tb != -1 || do_ipv6 == AF_INET6)
619 fprintf(stderr, "Nothing to flush.\n"); 616 fprintf(stderr, "Nothing to flush.\n");
620 } 617 }
621 fflush(stdout); 618 fflush(stdout);
622 return 0; 619 return 0;
623 } 620 }
624 round++; 621 _round++;
625 if (flush_update() < 0) 622 if (flush_update() < 0)
626 exit(1); 623 exit(1);
627 } 624 }