diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/init.c | 17 | ||||
-rw-r--r-- | src/main.c | 10 | ||||
-rw-r--r-- | src/process.c | 8 |
3 files changed, 18 insertions, 17 deletions
diff --git a/src/init.c b/src/init.c index 14f8db1a0..b2bb35e1a 100644 --- a/src/init.c +++ b/src/init.c @@ -484,14 +484,13 @@ int init_secondary(int ac, char **av) return -1; } } - if (!SupportedWindowsVersion()) {
- char *winver = GetWindowsVersion();
- alog("%s is not a supported version of Windows", winver);
- free(winver);
- return -1;
- }
- - if (!nofork) { + if (!SupportedWindowsVersion()) { +
char *winver = GetWindowsVersion(); +
alog("%s is not a supported version of Windows", winver); +
free(winver); +
return -1; +
} +
if (!nofork) { alog("Launching Anope into the background"); FreeConsole(); } @@ -527,7 +526,7 @@ int init_secondary(int ac, char **av) #else for (i = 1; i <= 31; i++) { #endif - signal(i, SIG_IGN); + signal(i, SIG_IGN); } #ifndef USE_THREADS diff --git a/src/main.c b/src/main.c index 1da547e1f..db73e5ae5 100644 --- a/src/main.c +++ b/src/main.c @@ -649,10 +649,10 @@ void do_backtrace(int show_segheader) alog("Backtrace: not available on this platform"); #endif #else - char *winver;
- winver = GetWindowsVersion();
- alog("Backtrace: not available on Windows");
- alog("Running %S", winver);
- free(winver); + char *winver; +
winver = GetWindowsVersion(); +
alog("Backtrace: not available on Windows"); +
alog("Running %S", winver); +
free(winver); #endif } diff --git a/src/process.c b/src/process.c index bde7dda20..8de1e6c87 100644 --- a/src/process.c +++ b/src/process.c @@ -254,13 +254,15 @@ void process() Bahmut ircd aliases but not for pseudo clients on. So additional logic is
that if the ac is greater then 1 copy av[1] else copy av[0]
I also changed from if statments, cause attempting to access a array member
- that is not set can lead to odd things - TSL (3/12/06) */ + that is not set can lead to odd things - TSL (3/12/06) */ if (!anope_set_mod_current_buffer(ac, av)) { if (ac >= 1) { if (nickIsServices(av[0], 1)) { - mod_current_buffer = (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0])); + mod_current_buffer = + (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0])); } else { - mod_current_buffer = (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0])); + mod_current_buffer = + (ac > 1 ? sstrdup(av[1]) : sstrdup(av[0])); } } else { mod_current_buffer = NULL; |