udhcpc: code shrink, rename functions, no logic changes
function old new delta d4_run_script - 739 +739 d4_recv_raw_packet - 484 +484 d4_run_script_deconfig - 12 +12 perform_release 207 200 -7 udhcpc_main 2598 2556 -42 udhcp_recv_raw_packet 484 - -484 udhcp_run_script 739 - -739 ------------------------------------------------------------------------------ (add/remove: 3/2 grow/shrink: 0/2 up/down: 1235/-1272) Total: -37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -441,7 +441,7 @@ static char **fill_envp(const uint8_t *option, const uint8_t *option_end)
|
||||
return envp;
|
||||
}
|
||||
|
||||
/* Call a script with a par file and env vars */
|
||||
/* Call a script with env vars */
|
||||
static void d6_run_script(const uint8_t *option, const uint8_t *option_end,
|
||||
const char *name)
|
||||
{
|
||||
@@ -464,7 +464,7 @@ static void d6_run_script(const uint8_t *option, const uint8_t *option_end,
|
||||
free(envp);
|
||||
}
|
||||
|
||||
/* Call a script with a par file and no env var */
|
||||
/* Call a script with no env var */
|
||||
static void d6_run_script_no_option(const char *name)
|
||||
{
|
||||
d6_run_script(NULL, NULL, name);
|
||||
|
||||
Reference in New Issue
Block a user