dhcp: get rid of last global data

function                                             old     new   delta
udhcpc_main                                         2680    2684      +4
state                                                  1       -      -1
listen_mode                                            1       -      -1
sockfd                                                 4       -      -4
------------------------------------------------------------------------------
(add/remove: 0/3 grow/shrink: 1/0 up/down: 4/-6)               Total: -2 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2019-05-26 13:05:04 +02:00
parent dff2bd733f
commit a4ed2c45b9
3 changed files with 82 additions and 80 deletions

View File

@ -24,6 +24,10 @@ struct client_config_t {
uint16_t first_secs;
uint16_t last_secs;
int sockfd;
smallint listen_mode;
smallint state;
} FIX_ALIASING;
/* server_config sits in 1st half of bb_common_bufsiz1 */