diff --git a/services/init/init_service_manager.c b/services/init/init_service_manager.c index 8a7779f3246b842c699c144a8d4dfb7240179f5c..b82002518d7873662cf6ce471cd28b4518edf724 100755 --- a/services/init/init_service_manager.c +++ b/services/init/init_service_manager.c @@ -140,7 +140,7 @@ void ReleaseService(Service *service) FreeServiceSocket(service->socketCfg); FreeServiceFile(service->fileCfg); - if(service->apl != NULL) { + if (service->apl != NULL) { free(service->apl); service->apl = NULL; } diff --git a/services/loopevent/task/le_streamtask.c b/services/loopevent/task/le_streamtask.c index 5786d48eb1a07d45d9f6d08cde702c8317ad9049..47fc1ae064960b1697552e7d0a207264122af6ef 100644 --- a/services/loopevent/task/le_streamtask.c +++ b/services/loopevent/task/le_streamtask.c @@ -30,7 +30,7 @@ static LE_STATUS HandleSendMsg_(const LoopHandle loopHandle, while (buffer) { int ret = write(GetSocketFd(taskHandle), buffer->data, buffer->dataSize); LE_LOGV("HandleSendMsg_ fd:%d send data size %d %d", GetSocketFd(taskHandle), buffer->dataSize, ret); - buffer->result = (ret == buffer->dataSize) ? 0 : errno; + buffer->result = (ret == (int)buffer->dataSize) ? 0 : errno; if (complete != NULL) { complete(taskHandle, buffer); } diff --git a/services/modules/reboot/reboot.c b/services/modules/reboot/reboot.c index b34b792236cabb18635e161bca73aca728ac4d83..116f7277c7c0baf5f0c160301e448a40fce0396b 100644 --- a/services/modules/reboot/reboot.c +++ b/services/modules/reboot/reboot.c @@ -112,7 +112,7 @@ static ModuleCmdInfo g_rebootCmdIds[] = { static void RebootAdpInit(void) { for (size_t i = 0; i < sizeof(g_rebootCmdIds)/sizeof(g_rebootCmdIds[0]); i++) { - g_rebootCmdIds[i].cmdId = AddCmdExecutor(g_rebootCmdIds[i].cmd, g_rebootCmdIds[i].executor); + g_rebootCmdIds[i].cmdId = (uint32_t)AddCmdExecutor(g_rebootCmdIds[i].cmd, g_rebootCmdIds[i].executor); } } diff --git a/services/param/watcher/agent/watcher_manager_kits.cpp b/services/param/watcher/agent/watcher_manager_kits.cpp index 9f57a5ccb78e2fb1a38c0c4323fc5a18e0276416..ea060f16634adddc8121cf9ad9f1d71ad425bb08 100644 --- a/services/param/watcher/agent/watcher_manager_kits.cpp +++ b/services/param/watcher/agent/watcher_manager_kits.cpp @@ -224,7 +224,6 @@ int WatcherManagerKits::ParamWatcher::AddParameterListener(ParameterChangePtr ca continue; } if (it->second->IsEqual(callback, context)) { - WATCHER_LOGI("AddParameterListener callback %p context %p exist", callback, context); return -1; } } @@ -244,7 +243,6 @@ int WatcherManagerKits::ParamWatcher::DelParameterListener(ParameterChangePtr ca if ((callback == nullptr && context == nullptr)) { RemoveParameterListener(index); } else if (listener->IsEqual(callback, context)) { - WATCHER_LOGI("DelParameterListener callback %p context %p", callback, context); RemoveParameterListener(index); break; }