mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
netutils/ntpclient: guard DHCP-only helpers
fix a warning that static function defined by not used Signed-off-by: Jerry Ma <masc2008@gmail.com>
This commit is contained in:
parent
c82957109f
commit
0105a9b238
1 changed files with 4 additions and 0 deletions
|
|
@ -227,6 +227,7 @@ unsigned int g_last_nsamples = 0;
|
|||
****************************************************************************/
|
||||
|
||||
static int ntpc_daemon(int argc, FAR char **argv);
|
||||
#ifdef CONFIG_NETUTILS_DHCPC
|
||||
static int ntpc_set_servers_from_dhcp(FAR const char *ntp_server_list);
|
||||
|
||||
static FAR char *ntpc_dup_server_list(FAR const char *ntp_server_list)
|
||||
|
|
@ -238,6 +239,7 @@ static FAR char *ntpc_dup_server_list(FAR const char *ntp_server_list)
|
|||
|
||||
return strdup(ntp_server_list);
|
||||
}
|
||||
#endif
|
||||
|
||||
static FAR const char *ntpc_select_server_list(FAR uint8_t *source)
|
||||
{
|
||||
|
|
@ -1687,6 +1689,7 @@ int ntpc_start(void)
|
|||
return ret;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NETUTILS_DHCPC
|
||||
static int ntpc_set_servers_from_dhcp(FAR const char *ntp_server_list)
|
||||
{
|
||||
FAR char *new_servers;
|
||||
|
|
@ -1749,6 +1752,7 @@ static int ntpc_set_servers_from_dhcp(FAR const char *ntp_server_list)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: ntpc_stop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue