diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-03 16:14:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-03 16:14:04 +0200 |
commit | f6def87a2e73e65fb6743cb5b6d0592b390628e5 (patch) | |
tree | 40963f11d21645cc84f0db78f401e673a4f3a458 /networking/udhcp/d6_dhcpc.c | |
parent | 2f1d13d56aecc622366f717932929db5f0b8b35b (diff) | |
download | busybox-w32-f6def87a2e73e65fb6743cb5b6d0592b390628e5.tar.gz busybox-w32-f6def87a2e73e65fb6743cb5b6d0592b390628e5.tar.bz2 busybox-w32-f6def87a2e73e65fb6743cb5b6d0592b390628e5.zip |
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>
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index 276ceca3c..1a58f5f44 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -441,7 +441,7 @@ static char **fill_envp(const uint8_t *option, const uint8_t *option_end) | |||
441 | return envp; | 441 | return envp; |
442 | } | 442 | } |
443 | 443 | ||
444 | /* Call a script with a par file and env vars */ | 444 | /* Call a script with env vars */ |
445 | static void d6_run_script(const uint8_t *option, const uint8_t *option_end, | 445 | static void d6_run_script(const uint8_t *option, const uint8_t *option_end, |
446 | const char *name) | 446 | const char *name) |
447 | { | 447 | { |
@@ -464,7 +464,7 @@ static void d6_run_script(const uint8_t *option, const uint8_t *option_end, | |||
464 | free(envp); | 464 | free(envp); |
465 | } | 465 | } |
466 | 466 | ||
467 | /* Call a script with a par file and no env var */ | 467 | /* Call a script with no env var */ |
468 | static void d6_run_script_no_option(const char *name) | 468 | static void d6_run_script_no_option(const char *name) |
469 | { | 469 | { |
470 | d6_run_script(NULL, NULL, name); | 470 | d6_run_script(NULL, NULL, name); |