dhcpc: code shrink in good_hostname
authorMartin Lewis <martin.lewis.x84@gmail.com>
Mon, 4 May 2020 21:59:14 +0000 (16:59 -0500)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 8 Jun 2020 23:49:10 +0000 (01:49 +0200)
commit726d0d148b5a7a21eccaf8b17d2726f56ce2ce8f
tree15ff71f94955a750e729cbc2b1524b4218121053
parent6f7a0096496a5a9e90638dc01e947015cc776110
dhcpc: code shrink in good_hostname

Incorporated valid_domain_label into good_hostname to simplify the implementation.

function                                             old     new   delta
static.xmalloc_optname_optval                        973     958     -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-15)             Total: -15 bytes
   text    data     bss     dec     hex filename
 993144   16915    1872 1011931   f70db busybox_old
 993129   16915    1872 1011916   f70cc busybox_unstripped

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