From 4ee824f6ba3f35228f1c48e21681aa532a7dc23f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 3 Jul 2017 01:22:13 +0200 Subject: randomconfig fixes Signed-off-by: Denys Vlasenko --- networking/udhcp/common.h | 2 ++ networking/udhcp/packet.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'networking') diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index 6907e7f..a9c23a1 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h @@ -295,7 +295,9 @@ int FAST_FUNC udhcp_str2optset(const char *str, const struct dhcp_optflag *optflags, const char *option_strings); +#if ENABLE_UDHCPC || ENABLE_UDHCPD void udhcp_init_header(struct dhcp_packet *packet, char type) FAST_FUNC; +#endif int udhcp_recv_kernel_packet(struct dhcp_packet *packet, int fd) FAST_FUNC; diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c index 0a31f26..9e1b46d 100644 --- a/networking/udhcp/packet.c +++ b/networking/udhcp/packet.c @@ -12,6 +12,7 @@ #include #include +#if ENABLE_UDHCPC || ENABLE_UDHCPD void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type) { memset(packet, 0, sizeof(*packet)); @@ -29,6 +30,7 @@ void FAST_FUNC udhcp_init_header(struct dhcp_packet *packet, char type) packet->options[0] = DHCP_END; udhcp_add_simple_option(packet, DHCP_MESSAGE_TYPE, type); } +#endif #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2 void FAST_FUNC udhcp_dump_packet(struct dhcp_packet *packet) -- cgit v1.1