From 2096bca00006b628dd64dd1639a90f72ac171892 Mon Sep 17 00:00:00 2001 From: David Lin Date: Sun, 26 Apr 2020 21:03:37 +0800 Subject: [PATCH] Update HAL_UDP_lwip.c --- .../port/TencentOS_tiny/HAL_UDP_lwip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/connectivity/qcloud-iot-explorer-sdk/port/TencentOS_tiny/HAL_UDP_lwip.c b/components/connectivity/qcloud-iot-explorer-sdk/port/TencentOS_tiny/HAL_UDP_lwip.c index d0cb9410..2aa13c85 100644 --- a/components/connectivity/qcloud-iot-explorer-sdk/port/TencentOS_tiny/HAL_UDP_lwip.c +++ b/components/connectivity/qcloud-iot-explorer-sdk/port/TencentOS_tiny/HAL_UDP_lwip.c @@ -50,7 +50,7 @@ uintptr_t HAL_UDP_Connect(const char *host, unsigned short port) Log_d("establish udp connection with server(host=%s port=%s)", host, port_str); if (getaddrinfo(host, port_str, &hints, &addr_list) != 0) { - Log_e("getaddrinfo error,errno:%s",strerror(errno)); + Log_e("getaddrinfo error,errno:%s",strerror(errno)); return 0; } @@ -158,4 +158,4 @@ int HAL_UDP_ReadTimeout(uintptr_t fd, unsigned char *p_data, unsigned int datale return HAL_UDP_Read(fd, p_data, datalen); } -#endif +#endif/*COAP_COMM_ENABLED*/