From 9d47aa4ad9364be94b3ec65a69d50d49951e4c68 Mon Sep 17 00:00:00 2001 From: Heler Date: Thu, 16 Jul 2015 19:46:20 +0300 Subject: [PATCH] Fixed warnings --- src/common/showmsg.c | 2 +- src/map/mob.c | 1 - src/map/script.c | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 65781b73ee..145812d4d5 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -688,7 +688,7 @@ int _vShowMessage(enum msg_type flag, const char *string, va_list ap) ( ( flag == MSG_ERROR || flag == MSG_SQL ) && console_msg_log&2 ) || ( flag == MSG_DEBUG && console_msg_log&4 ) ) {//[Ind] FILE *log = NULL; - if( (log = fopen(console_log_filepath ? console_log_filepath : "./log/unknown.log","a+")) ) { + if( (log = fopen(console_log_filepath, "a+")) ) { char timestring[255]; time_t curtime; time(&curtime); diff --git a/src/map/mob.c b/src/map/mob.c index 86aaf60650..8300025e0a 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -2849,7 +2849,6 @@ int mob_class_change (struct mob_data *md, int mob_id) { unsigned int tick = gettick(); int i, c, hp_rate; - struct mob_db *mobdb = NULL; nullpo_ret(md); diff --git a/src/map/script.c b/src/map/script.c index 3fc3e2fd28..87fb526144 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11128,10 +11128,10 @@ BUILDIN_FUNC(getwaitingroomusers) if( nd != NULL && (cd=(struct chat_data *)map_id2bl(nd->chat_id)) != NULL ) { for(i = 0; i < cd->users; ++i) { - setd_sub(st, NULL, ".@waitingroom_users", j, (void *)cd->usersd[i]->status.account_id, NULL); + setd_sub(st, NULL, ".@waitingroom_users", j, (void *)__64BPRTSIZE(cd->usersd[i]->status.account_id), NULL); j++; } - setd_sub(st, NULL, ".@waitingroom_usercount", 0, (void *)j, NULL); + setd_sub(st, NULL, ".@waitingroom_usercount", 0, (void *)__64BPRTSIZE(j), NULL); } return 0; }