summaryrefslogtreecommitdiff
path: root/networking/libiproute
diff options
context:
space:
mode:
authorRob Landley2006-05-17 20:24:53 +0000
committerRob Landley2006-05-17 20:24:53 +0000
commit7723019c6b4044f945c4f8b72054b6c074c01093 (patch)
tree3ffed623ef643d5706787da145c55d03e2b6345d /networking/libiproute
parentc27c04c16e607c4a266093d9683fb1c9f83e9bed (diff)
downloadbusybox-7723019c6b4044f945c4f8b72054b6c074c01093.zip
busybox-7723019c6b4044f945c4f8b72054b6c074c01093.tar.gz
Patch from Bernhard Fischer to remove some useless bits.
Diffstat (limited to 'networking/libiproute')
-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 bcb4880..a742506 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)
}
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);
}
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index cb750e6..a67bc2e 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)
}
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);
}