From: Maxim Mamontov Date: Tue, 20 Sep 2011 09:19:02 +0000 (+0300) Subject: Remove unused headers and add variable declaration in stargazer's X-Git-Tag: 2.408-rc1~18 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/d6a36e320b2e843931f45e718d4179231a763c4f?ds=sidebyside;hp=c6b334814cf2d92c88cebfb4ad9d501a94b8e78a Remove unused headers and add variable declaration in stargazer's main.cpp --- diff --git a/projects/stargazer/main.cpp b/projects/stargazer/main.cpp index 3839ae8e..a8678893 100644 --- a/projects/stargazer/main.cpp +++ b/projects/stargazer/main.cpp @@ -46,9 +46,7 @@ #include "stg/plugin.h" #include "stg/logger.h" #include "stg/scriptexecuter.h" -#include "stg/conffiles.h" #include "stg/version.h" -#include "stg/pinger.h" #include "stg_timer.h" #include "settings_impl.h" #include "users_impl.h" @@ -161,11 +159,11 @@ int ForkAndWait(const string &) #endif { #ifndef NO_DAEMON -stgChildPid = fork(); +pid_t childPid = fork(); string startFile = confDir + START_FILE; unlink(startFile.c_str()); -switch (stgChildPid) +switch (childPid) { case -1: return -1;