From 79a66d4831180355b4cfe91c6d8d4869bd4fe613 Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Sat, 29 Jun 2019 14:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=9F=9F=E5=90=8D=E5=9C=B0=E5=9D=80=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=97=A5=E5=BF=97=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ntp/ntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntp/ntp.c b/ntp/ntp.c index 03fb652..18c4fe5 100644 --- a/ntp/ntp.c +++ b/ntp/ntp.c @@ -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