diff options
author | Denis Vlasenko | 2008-05-31 07:33:18 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-05-31 07:33:18 +0000 |
commit | 3e57adb73198874b3924cb9aa8770193c894b1a9 (patch) | |
tree | ed9aac14a4c4f1b521a60fb7aa2428afaf255111 /networking/libiproute/iproute.c | |
parent | 8f74094548a1147ed7b459ca771343483b1c202c (diff) | |
download | busybox-3e57adb73198874b3924cb9aa8770193c894b1a9.zip busybox-3e57adb73198874b3924cb9aa8770193c894b1a9.tar.gz |
libiproute: style fixes, and using smallint as appropriate
function old new delta
print_route 1730 1731 +1
print_addrinfo 1497 1498 +1
iproute_list_or_flush 1232 1229 -3
ipaddr_list_or_flush 2490 2484 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/2 up/down: 2/-9) Total: -7 bytes
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r-- | networking/libiproute/iproute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 670f188..1f64794 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c @@ -24,7 +24,7 @@ typedef struct filter_t { int tb; - int flushed; + smallint flushed; char *flushb; int flushp; int flushe; @@ -189,7 +189,7 @@ static int print_route(struct sockaddr_nl *who ATTRIBUTE_UNUSED, fn->nlmsg_flags = NLM_F_REQUEST; fn->nlmsg_seq = ++filter.rth->seq; filter.flushp = (((char*)fn) + n->nlmsg_len) - filter.flushb; - filter.flushed++; + filter.flushed = 1; return 0; } |