From 8f2d8b89f390f5b7df650a1aa2d86efff36f2271 Mon Sep 17 00:00:00 2001 From: openharmony_ci <120357966@qq.com> Date: Thu, 23 May 2024 02:56:02 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!547=20:?= =?UTF-8?q?=20=E9=9D=99=E6=80=81=E9=93=BE=E6=8E=A5=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7=E8=A1=A8'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frameworks/libhilog/base/hilog_base.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frameworks/libhilog/base/hilog_base.c b/frameworks/libhilog/base/hilog_base.c index 6c26bf2..b6f8f52 100644 --- a/frameworks/libhilog/base/hilog_base.c +++ b/frameworks/libhilog/base/hilog_base.c @@ -29,8 +29,9 @@ #define LOG_LEN 3 #define ERROR_FD 2 -static const int SOCKET_TYPE = SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC; -static const struct sockaddr_un SOCKET_ADDR = {AF_UNIX, SOCKET_FILE_DIR INPUT_SOCKET_NAME}; +const int SOCKET_TYPE = SOCK_DGRAM | SOCK_NONBLOCK | SOCK_CLOEXEC; +const int INVALID_SOCKET = -1; +const struct sockaddr_un SOCKET_ADDR = {AF_UNIX, SOCKET_FILE_DIR INPUT_SOCKET_NAME}; static int SendMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t fmtLen) { @@ -117,4 +118,4 @@ bool HiLogBaseIsLoggable(unsigned int domain, const char *tag, LogLevel level) return false; } return true; -} +} \ No newline at end of file -- Gitee