diff --git a/src/switch.c b/src/switch.c index 9aa32131d1..2e4f6dbcec 100644 --- a/src/switch.c +++ b/src/switch.c @@ -195,10 +195,10 @@ int main(int argc, char *argv[]) { char pid_path[256] = ""; // full path to the pid file const char *err = NULL; // error value for return from freeswitch initialization -#ifndef WIN32 - int nf = 0; // TRUE if we are running in nofork mode -#endif - int nc = 0; // TRUE if we are running in noconsole mode +#ifndef WIN32 + int nf = 0; // TRUE if we are running in nofork mode +#endif + int nc = 0; // TRUE if we are running in noconsole mode int vg = 0; // TRUE if we are running in vg mode FILE *f; // file handle to the pid file pid_t pid = 0; // @@ -259,9 +259,9 @@ int main(int argc, char *argv[]) } } #else - - if (argv[x] && !strcmp(argv[x], "-nf")) { - nf++; + + if (argv[x] && !strcmp(argv[x], "-nf")) { + nf++; } #endif if (argv[x] && !strcmp(argv[x], "-hp")) { @@ -273,8 +273,8 @@ int main(int argc, char *argv[]) } if (argv[x] && !strcmp(argv[x], "-nc")) { - nc++; - } + nc++; + } if (argv[x] && !strcmp(argv[x], "-vg")) { vg++; @@ -293,7 +293,7 @@ int main(int argc, char *argv[]) #ifdef WIN32 FreeConsole(); #else - if (!nf && (pid = fork())) { + if (!nf && (pid = fork())) { fprintf(stderr, "%d Backgrounding.\n", (int)pid); exit(0); }