|
@@ -425,7 +425,7 @@ static void dtx_arg(int& argc, char *argv[])
|
|
|
char date[50] = "";
|
|
char date[50] = "";
|
|
|
|
|
|
|
|
strftime(date, sizeof date, "%c %Z", gmtime(&buildts));
|
|
strftime(date, sizeof date, "%c %Z", gmtime(&buildts));
|
|
|
- printf(STR("%s\nBuild Date: %s (%s%lu%s)\n"), version, date, BOLD(-1), buildts, BOLD_END(-1));
|
|
|
|
|
|
|
+ printf(STR("%s\nBuild Date: %s (%s%li%s)\n"), version, date, BOLD(-1), (long)buildts, BOLD_END(-1));
|
|
|
printf(STR("BuildOS: %s%s%s BuildArch: %s%s%s\n"), BOLD(-1), BUILD_OS, BOLD_END(-1), BOLD(-1), BUILD_ARCH, BOLD_END(-1));
|
|
printf(STR("BuildOS: %s%s%s BuildArch: %s%s%s\n"), BOLD(-1), BUILD_OS, BOLD_END(-1), BOLD(-1), BUILD_ARCH, BOLD_END(-1));
|
|
|
printf(STR("- http://wraith.botpack.net -\n"));
|
|
printf(STR("- http://wraith.botpack.net -\n"));
|
|
|
#ifdef DEBUG
|
|
#ifdef DEBUG
|
|
@@ -752,13 +752,13 @@ int main(int argc, char **argv)
|
|
|
|
|
|
|
|
/* Version info! */
|
|
/* Version info! */
|
|
|
simple_snprintf(ver, sizeof(ver), STR("[%s] Wraith %s"), settings.packname, egg_version);
|
|
simple_snprintf(ver, sizeof(ver), STR("[%s] Wraith %s"), settings.packname, egg_version);
|
|
|
- simple_snprintf(version, sizeof(version), STR("%s%s (%lu)"), ver,
|
|
|
|
|
|
|
+ simple_snprintf(version, sizeof(version), STR("%s%s (%li)"), ver,
|
|
|
#ifdef DEBUG
|
|
#ifdef DEBUG
|
|
|
"(d)",
|
|
"(d)",
|
|
|
#else
|
|
#else
|
|
|
"",
|
|
"",
|
|
|
#endif
|
|
#endif
|
|
|
- buildts);
|
|
|
|
|
|
|
+ (long)buildts);
|
|
|
|
|
|
|
|
memcpy(&nowtm, gmtime(&now), sizeof(struct tm));
|
|
memcpy(&nowtm, gmtime(&now), sizeof(struct tm));
|
|
|
lastmin = nowtm.tm_min;
|
|
lastmin = nowtm.tm_min;
|
|
@@ -770,14 +770,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);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -825,7 +825,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);
|