Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions netutils/ntpclient/ntpclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
{
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1749,6 +1752,7 @@ static int ntpc_set_servers_from_dhcp(FAR const char *ntp_server_list)

return ret;
}
#endif

/****************************************************************************
* Name: ntpc_stop
Expand Down
Loading