aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/iproute.c')
-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 }