Patch from Bernhard Fischer to remove some useless bits.
authorRob Landley <rob@landley.net>
Wed, 17 May 2006 20:24:53 +0000 (20:24 -0000)
committerRob Landley <rob@landley.net>
Wed, 17 May 2006 20:24:53 +0000 (20:24 -0000)
networking/libiproute/ipaddress.c
networking/libiproute/iproute.c

index bcb4880a6ebb4f2a758b78f16f155fbb3510505e..a742506212f33a823e1be3d6a0dcce68d8d1f1c4 100644 (file)
@@ -506,7 +506,6 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
        }
 
        if (flush) {
-               int round = 0;
                char flushb[4096-512];
 
                filter.flushb = flushb;
@@ -525,14 +524,9 @@ int ipaddr_list_or_flush(int argc, char **argv, int flush)
                                exit(1);
                        }
                        if (filter.flushed == 0) {
-#if 0
-                               if (round == 0)
-                                       fprintf(stderr, "Nothing to flush.\n");
-#endif
                                fflush(stdout);
                                return 0;
                        }
-                       round++;
                        if (flush_update() < 0)
                                exit(1);
                }
index cb750e628430270b48ef7d8519091cc4f44ff771..a67bc2e440da56b1a6c7380dbd9bee81cd02d609 100644 (file)
@@ -588,7 +588,6 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
        }
 
        if (flush) {
-               int _round = 0;
                char flushb[4096-512];
 
                if (filter.tb == -1) {
@@ -614,14 +613,9 @@ static int iproute_list_or_flush(int argc, char **argv, int flush)
                                return -1;
                        }
                        if (filter.flushed == 0) {
-                               if (_round == 0) {
-                                       if (filter.tb != -1 || do_ipv6 == AF_INET6)
-                                               fprintf(stderr, "Nothing to flush.\n");
-                               }
                                fflush(stdout);
                                return 0;
                        }
-                       _round++;
                        if (flush_update() < 0)
                                exit(1);
                }