dhcpc: refactor xmalloc_optname_optval to shrink binary size
authorMartin Lewis <martin.lewis.x84@gmail.com>
Tue, 9 Jun 2020 21:59:54 +0000 (16:59 -0500)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 9 Jun 2020 15:59:56 +0000 (17:59 +0200)
commitd30d1ebc117db182a6156df182057291d6fbaae1
tree59acd2bbd808d350f8e35dbb04e773002e6060f2
parent17764603f2a10bd43d174dc05512f38ab16a080a
dhcpc: refactor xmalloc_optname_optval to shrink binary size

function                                             old     new   delta
len_of_option_as_string                               14      13      -1
dhcp_option_lengths                                   14      13      -1
udhcp_str2optset                                     641     637      -4
static.xmalloc_optname_optval                        777     718     -59
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-65)             Total: -65 bytes

Signed-off-by: Martin Lewis <martin.lewis.x84@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/common.h
networking/udhcp/dhcpc.c