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>
This commit is contained in:
parent
97c2a6d082
commit
9d05ad087e
@ -814,7 +814,9 @@ static NOINLINE int send_d6_renew(uint32_t xid, struct in6_addr *server_ipv6, st
|
||||
}
|
||||
|
||||
/* Unicast a DHCP release message */
|
||||
static int send_d6_release(struct in6_addr *server_ipv6, struct in6_addr *our_cur_ipv6)
|
||||
static
|
||||
ALWAYS_INLINE /* one caller, help compiler to use this fact */
|
||||
int send_d6_release(struct in6_addr *server_ipv6, struct in6_addr *our_cur_ipv6)
|
||||
{
|
||||
struct d6_packet packet;
|
||||
uint8_t *opt_ptr;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user