aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-11-03 23:34:03 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-11-03 23:34:35 +0100
commit9d05ad087e1cb1295463ea1133bb619b67125f1d (patch)
tree0adc0b7b98ad538332ce94502fc8ad951761565a /networking/udhcp/dhcpc.c
parent97c2a6d0828f2b70de623c6642e5507f36e16cb4 (diff)
downloadbusybox-9d05ad087e1cb1295463ea1133bb619b67125f1d.tar.gz
udhcpc: code shrink
function old new delta perform_release 112 172 +60 send_release 81 - -81 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 60/-81) Total: -21 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index d2f165904..4b23e4d39 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -850,7 +850,9 @@ static NOINLINE int send_decline(/*uint32_t xid,*/ uint32_t server, uint32_t req
#endif
/* Unicast a DHCP release message */
-static int send_release(uint32_t server, uint32_t ciaddr)
+static
+ALWAYS_INLINE /* one caller, help compiler to use this fact */
+int send_release(uint32_t server, uint32_t ciaddr)
{
struct dhcp_packet packet;