diff --git a/include/appspawn_server.h b/include/appspawn_server.h index 5edb77c7ddfa7b5075fb54eb8a407b540a4e7fdf..c73cf79fa9fa00cf026a1a9e3f403ae67b695ce2 100644 --- a/include/appspawn_server.h +++ b/include/appspawn_server.h @@ -145,14 +145,14 @@ private: private: const std::string deviceNull_ = "/dev/null"; - std::string socketName_{}; + std::string socketName_ {}; std::shared_ptr socket_ = nullptr; - std::mutex mut_{}; - mutable std::condition_variable dataCond_{}; - std::queue> appQueue_{}; + std::mutex mut_ {}; + mutable std::condition_variable dataCond_ {}; + std::queue> appQueue_ {}; std::function propertyHandler_ = nullptr; std::function errHandlerHook_ = nullptr; - bool isRunning_{}; + bool isRunning_ {}; }; } // namespace AppSpawn } // namespace OHOS diff --git a/src/main.cpp b/src/main.cpp index b6bb8a587e4f5e70c1dabc31ba1ad7246059bb4d..905bfec6243470c831daa686f4df0b6595b8a16f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,7 @@ #include "appspawn_server.h" #include "hilog/log.h" -int main(int argc, char *const argv[]) +int main(int argc, char* const argv[]) { if (argc > 0) { // calculate child process long name size