|
@@ -794,14 +794,14 @@ int main(int argc, char **argv)
|
|
|
if (settings.prefix[i] != SETTINGS_HEADER[0])
|
|
if (settings.prefix[i] != SETTINGS_HEADER[0])
|
|
|
werr(ERR_BADPASS);
|
|
werr(ERR_BADPASS);
|
|
|
|
|
|
|
|
- sdprintf(STR("my euid: %d my uuid: %d, my ppid: %d my pid: %d"), myuid, getuid(), getppid(), mypid);
|
|
|
|
|
|
|
+ sdprintf(STR("my euid: %d my uuid: %d, my ppid: %d my pid: %d"), myuid, getuid(), (int)getppid(), (int)mypid);
|
|
|
|
|
|
|
|
/* Check and load conf file */
|
|
/* Check and load conf file */
|
|
|
startup_checks(0);
|
|
startup_checks(0);
|
|
|
|
|
|
|
|
if (!socksfile && ((conf.bot->localhub && !updating) || !conf.bot->localhub)) {
|
|
if (!socksfile && ((conf.bot->localhub && !updating) || !conf.bot->localhub)) {
|
|
|
if ((conf.bot->pid > 0) && conf.bot->pid_file) {
|
|
if ((conf.bot->pid > 0) && conf.bot->pid_file) {
|
|
|
- sdprintf(STR("%s is already running, pid: %d"), conf.bot->nick, conf.bot->pid);
|
|
|
|
|
|
|
+ sdprintf(STR("%s is already running, pid: %d"), conf.bot->nick, (int)conf.bot->pid);
|
|
|
exit(1);
|
|
exit(1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -849,7 +849,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
|
|
printf(STR("%s[%s%s%s]%s -%s- initiated %s(%s%d%s)%s\n"),
|
|
printf(STR("%s[%s%s%s]%s -%s- initiated %s(%s%d%s)%s\n"),
|
|
|
BOLD(-1), BOLD_END(-1), settings.packname, BOLD(-1), BOLD_END(-1), conf.bot->nick,
|
|
BOLD(-1), BOLD_END(-1), settings.packname, BOLD(-1), BOLD_END(-1), conf.bot->nick,
|
|
|
- BOLD(-1), BOLD_END(-1), mypid, BOLD(-1), BOLD_END(-1));
|
|
|
|
|
|
|
+ BOLD(-1), BOLD_END(-1), (int)mypid, BOLD(-1), BOLD_END(-1));
|
|
|
|
|
|
|
|
} else
|
|
} else
|
|
|
writepid(conf.bot->pid_file, mypid);
|
|
writepid(conf.bot->pid_file, mypid);
|