aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-05-17 20:24:53 +0000
committerRob Landley <rob@landley.net>2006-05-17 20:24:53 +0000
commit7723019c6b4044f945c4f8b72054b6c074c01093 (patch)
tree3ffed623ef643d5706787da145c55d03e2b6345d /networking/libiproute/iproute.c
parentc27c04c16e607c4a266093d9683fb1c9f83e9bed (diff)
downloadbusybox-w32-7723019c6b4044f945c4f8b72054b6c074c01093.tar.gz
busybox-w32-7723019c6b4044f945c4f8b72054b6c074c01093.tar.bz2
busybox-w32-7723019c6b4044f945c4f8b72054b6c074c01093.zip
Patch from Bernhard Fischer to remove some useless bits.
Diffstat (limited to '')
-rw-r--r--networking/libiproute/iproute.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index cb750e628..a67bc2e44 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -588,7 +588,6 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
588 } 588 }
589 589
590 if (flush) { 590 if (flush) {
591 int _round = 0;
592 char flushb[4096-512]; 591 char flushb[4096-512];
593 592
594 if (filter.tb == -1) { 593 if (filter.tb == -1) {
@@ -614,14 +613,9 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
614 return -1; 613 return -1;
615 } 614 }
616 if (filter.flushed == 0) { 615 if (filter.flushed == 0) {
617 if (_round == 0) {
618 if (filter.tb != -1 || do_ipv6 == AF_INET6)
619 fprintf(stderr, "Nothing to flush.\n");
620 }
621 fflush(stdout); 616 fflush(stdout);
622 return 0; 617 return 0;
623 } 618 }
624 _round++;
625 if (flush_update() < 0) 619 if (flush_update() < 0)
626 exit(1); 620 exit(1);
627 } 621 }