netstat: fix IPv6 problem (garbage in scope_id); code shrink
authorDenys Vlasenko <dvlasenk@redhat.com>
Wed, 27 Oct 2010 11:10:29 +0000 (13:10 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Wed, 27 Oct 2010 11:10:29 +0000 (13:10 +0200)
commitdd88ba88f5082b1785539b1fb87af7320515b8c9
tree4b307764cdd28883213410ea4f29d65c0ccc22ed
parentc386aa5dcdb1333737827914b213c88e46cf43bd
netstat: fix IPv6 problem (garbage in scope_id); code shrink

function                                             old     new   delta
add_to_prg_cache_if_socket                             -     253    +253
print_inet_line                                      226     241     +15
udp_do_one                                           119     131     +12
tcp_do_one                                            65      77     +12
unix_do_one                                          530     529      -1
dir_act                                              215     207      -8
netstat_main                                         585     553     -32
.rodata                                           145592  145525     -67
file_act                                             255       -    -255
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 3/4 up/down: 292/-363)          Total: -71 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
networking/netstat.c