From 401136e19ea7986acd9a57c54e0a6fa4594186c9 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 30 May 2013 22:59:02 -0300 Subject: Follow up 20bdc01fa687b174a732be4483ddea4982d67ce9 Fixed warnings pinpointed by mkbu95 (THANKS) Signed-off-by: shennetsind --- src/map/battleground.c | 2 +- src/map/clif.c | 2 +- src/map/instance.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/battleground.c b/src/map/battleground.c index 4bb6035ad..bfcd56d8e 100644 --- a/src/map/battleground.c +++ b/src/map/battleground.c @@ -598,7 +598,7 @@ enum BATTLEGROUNDS_QUEUE_ACK bg_canqueue(struct map_session_data *sd, struct bg_ if ( !(sd->class_&JOBL_2) ) /* TODO: maybe make this a per-arena setting, so users may make custom arenas like baby-only,whatever. */ return BGQA_FAIL_CLASS_INVALID; - tsec = time(NULL); + tsec = (unsigned int)time(NULL); if ( ( tick = pc_readglobalreg(sd, bg->gdelay_var) ) && tsec < tick ) { char response[100]; diff --git a/src/map/clif.c b/src/map/clif.c index 99b4d8c11..b73c7ac31 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -15569,7 +15569,7 @@ void clif_font(struct map_session_data *sd) * Instancing Window *------------------------------------------*/ int clif_instance(int instance_id, int type, int flag) { - struct map_session_data *sd; + struct map_session_data *sd = NULL; unsigned char buf[255]; enum send_target target = PARTY; diff --git a/src/map/instance.c b/src/map/instance.c index 7b3e2e800..637e768c9 100644 --- a/src/map/instance.c +++ b/src/map/instance.c @@ -491,7 +491,7 @@ void instance_check_idle(int instance_id) { *--------------------------------------*/ void instance_set_timeout(int instance_id, unsigned int progress_timeout, unsigned int idle_timeout) { - unsigned int now = time(0); + unsigned int now = (unsigned int)time(0); if( !instance->valid(instance_id) ) return; -- cgit v1.2.3-60-g2f50