From de48170d4c783c0bd243d1ac87a839fba07a0444 Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Mon, 24 Jan 2022 19:51:23 +0800 Subject: [PATCH] modify: socket service ondemand adapt L1 & L2 Signed-off-by: xionglei6 --- services/init/init_service_socket.c | 2 +- services/utils/BUILD.gn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/init/init_service_socket.c b/services/init/init_service_socket.c index 996215c7..1cf9c6c5 100755 --- a/services/init/init_service_socket.c +++ b/services/init/init_service_socket.c @@ -110,7 +110,7 @@ static void ProcessWatchEvent_(const WatcherHandle watcherHandle, int fd, uint32 { *events = 0; Service *service = (Service *)context; - ServiceSocket *tmpSock = service->socketCfg;; + ServiceSocket *tmpSock = service->socketCfg; while (tmpSock != NULL) { if (tmpSock->sockFd == fd) { tmpSock->watcher = NULL; diff --git a/services/utils/BUILD.gn b/services/utils/BUILD.gn index 8ce12810..770a4823 100755 --- a/services/utils/BUILD.gn +++ b/services/utils/BUILD.gn @@ -70,4 +70,4 @@ if (defined(ohos_lite)) { defines = [ "_GNU_SOURCE" ] part_name = "init" } -} \ No newline at end of file +} -- GitLab