aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/libiproute/ipaddress.c6
-rw-r--r--networking/libiproute/iproute.c6
2 files changed, 0 insertions, 12 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index bcb4880a6..a74250621 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -506,7 +506,6 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
506 } 506 }
507 507
508 if (flush) { 508 if (flush) {
509 int round = 0;
510 char flushb[4096-512]; 509 char flushb[4096-512];
511 510
512 filter.flushb = flushb; 511 filter.flushb = flushb;
@@ -525,14 +524,9 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
525 exit(1); 524 exit(1);
526 } 525 }
527 if (filter.flushed == 0) { 526 if (filter.flushed == 0) {
528#if 0
529 if (round == 0)
530 fprintf(stderr, "Nothing to flush.\n");
531#endif
532 fflush(stdout); 527 fflush(stdout);
533 return 0; 528 return 0;
534 } 529 }
535 round++;
536 if (flush_update() < 0) 530 if (flush_update() < 0)
537 exit(1); 531 exit(1);
538 } 532 }
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 }