libbb: move netlink socket binding to the utility function
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 3 Jun 2019 12:16:52 +0000 (14:16 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 3 Jun 2019 12:16:52 +0000 (14:16 +0200)
commit45e3967c20b5020bf720b9497592e231104398f3
tree364a53e80d1c2246e33fb00c4f6bb26e854912ae
parent498cec202adbf69a7a72af5e204260682d614183
libbb: move netlink socket binding to the utility function

function                                             old     new   delta
create_and_bind_to_netlink                             -     134    +134
ifplugd_main                                        1117    1052     -65
uevent_main                                          399     306     -93
mdev_main                                            314     215     -99
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 134/-257)         Total: -123 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/xconnect.c
networking/ifplugd.c
util-linux/mdev.c
util-linux/uevent.c