diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-31 07:33:18 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-31 07:33:18 +0000 |
commit | 3e57adb73198874b3924cb9aa8770193c894b1a9 (patch) | |
tree | ed9aac14a4c4f1b521a60fb7aa2428afaf255111 /networking/libiproute/iproute.c | |
parent | 8f74094548a1147ed7b459ca771343483b1c202c (diff) | |
download | busybox-w32-3e57adb73198874b3924cb9aa8770193c894b1a9.tar.gz busybox-w32-3e57adb73198874b3924cb9aa8770193c894b1a9.tar.bz2 busybox-w32-3e57adb73198874b3924cb9aa8770193c894b1a9.zip |
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 670f188ee..1f6479454 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | typedef struct filter_t { | 25 | typedef struct filter_t { |
26 | int tb; | 26 | int tb; |
27 | int flushed; | 27 | smallint flushed; |
28 | char *flushb; | 28 | char *flushb; |
29 | int flushp; | 29 | int flushp; |
30 | int flushe; | 30 | int flushe; |
@@ -189,7 +189,7 @@ static int print_route(struct sockaddr_nl *who ATTRIBUTE_UNUSED, | |||
189 | fn->nlmsg_flags = NLM_F_REQUEST; | 189 | fn->nlmsg_flags = NLM_F_REQUEST; |
190 | fn->nlmsg_seq = ++filter.rth->seq; | 190 | fn->nlmsg_seq = ++filter.rth->seq; |
191 | filter.flushp = (((char*)fn) + n->nlmsg_len) - filter.flushb; | 191 | filter.flushp = (((char*)fn) + n->nlmsg_len) - filter.flushb; |
192 | filter.flushed++; | 192 | filter.flushed = 1; |
193 | return 0; | 193 | return 0; |
194 | } | 194 | } |
195 | 195 | ||