diff --git a/services/init/init_service_socket.c b/services/init/init_service_socket.c index 996215c7976993c7624172a848dc0369972677ba..1cf9c6c5b08dc396fa3f49e5a845e6d536629b2b 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 8ce12810fcdffdf4e804e2070ed0dea55342318a..770a48239477361515d4473061c357eec9df7643 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 +}