Patch from Bernhard Fischer to remove some useless bits.

This commit is contained in:
Rob Landley 2006-05-17 20:24:53 +00:00
parent c27c04c16e
commit 7723019c6b
2 changed files with 0 additions and 12 deletions

View 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);
}

View 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);
}