Skip to content

Commit

Permalink
Merge pull request #39 from enkiller/master
Browse files Browse the repository at this point in the history
【修改】调整域名地址获取失败日志等级
  • Loading branch information
armink authored Jun 29, 2019
2 parents b564538 + 79a66d4 commit 190d734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ntp/ntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ static int sendto_ntp_server(int sockfd, const char *host_name, struct sockaddr_
socklen_t addr_len = sizeof(struct sockaddr_in);
/* NTP UDP port number. */
int portno = 123;

server = gethostbyname(host_name);
if (server == NULL)
{
LOG_W("No such host(%s)", host_name);
LOG_D("No such host(%s)", host_name);
return -RT_ERROR;
}
else
Expand Down

0 comments on commit 190d734

Please sign in to comment.