libbb: introduce and use bb_getsockname()
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Feb 2018 13:55:46 +0000 (14:55 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Feb 2018 13:55:46 +0000 (14:55 +0100)
commitba3b9dbf065438402d89655d7baefb0ccc6f0663
tree4669edd0fb031940a794eaf8942bdbf314efea2e
parentd3162773d5c722cc1f5c5b1ea5171c8d3c208135
libbb: introduce and use bb_getsockname()

function                                             old     new   delta
bb_getsockname                                         -      18     +18
xrtnl_open                                            88      83      -5
do_iplink                                           1216    1209      -7
arping_main                                         1686    1668     -18
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/3 up/down: 18/-30)            Total: -12 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/bb_getsockname.c [new file with mode: 0644]
networking/arping.c
networking/inetd.c
networking/libiproute/iplink.c
networking/libiproute/libnetlink.c