From fe195a86cdeebe63c0315c6598fa794eaac5e36c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 22 Apr 2015 09:17:06 +0200 Subject: [PATCH] dhcp: move declaration of "extern void dhcp_set_ntp_servers()" from dhcp.c to dhcp.h to make the function prototype known to implementers --- src/core/dhcp.c | 7 ------- src/include/lwip/dhcp.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/dhcp.c b/src/core/dhcp.c index f83a4361..8ad2488e 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -108,13 +108,6 @@ #define REBOOT_TRIES 2 -#if LWIP_DHCP_GET_NTP_SRV -/** This function must exist, in other to add offered NTP servers to - * the NTP (or SNTP) engine. - * See LWIP_DHCP_MAX_NTP_SERVERS */ -extern void dhcp_set_ntp_servers(u8_t num_ntp_servers, const ip4_addr_t* ntp_server_addrs); -#endif /* LWIP_DHCP_GET_NTP_SRV */ - /** Option handling: options are parsed in dhcp_parse_reply * and saved in an array where other functions can load them from. * This might be moved into the struct dhcp (not necessarily since diff --git a/src/include/lwip/dhcp.h b/src/include/lwip/dhcp.h index 55299428..407868db 100644 --- a/src/include/lwip/dhcp.h +++ b/src/include/lwip/dhcp.h @@ -236,6 +236,13 @@ void dhcp_fine_tmr(void); #define DHCP_OVERLOAD_SNAME 2 #define DHCP_OVERLOAD_SNAME_FILE 3 +#if LWIP_DHCP_GET_NTP_SRV +/** This function must exist, in other to add offered NTP servers to + * the NTP (or SNTP) engine. + * See LWIP_DHCP_MAX_NTP_SERVERS */ +extern void dhcp_set_ntp_servers(u8_t num_ntp_servers, const ip4_addr_t* ntp_server_addrs); +#endif /* LWIP_DHCP_GET_NTP_SRV */ + #ifdef __cplusplus } #endif