From 32260349036f3af44873d13d12bedb3883bb17bf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 Jan 2015 16:56:01 +0300 Subject: fix compilation warnings. --- src/map/clif.c | 2 +- src/map/utils/formatutils.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/map/clif.c b/src/map/clif.c index d0634bd..e0e2cf6 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -152,7 +152,7 @@ void eclif_authok_post(struct map_session_data *sd) return; eclif_send_additional_slots(sd, sd); - send_pc_info(sd, sd, SELF); + send_pc_info(&sd->bl, &sd->bl, SELF); struct MapdExt *data = mapd_get(sd->bl.m); int mask = data ? data->mask : 1; send_mapmask(sd->fd, mask); diff --git a/src/map/utils/formatutils.c b/src/map/utils/formatutils.c index 0d50c25..6777423 100644 --- a/src/map/utils/formatutils.c +++ b/src/map/utils/formatutils.c @@ -61,7 +61,7 @@ int format_sub(struct script_state* st, int translate) { if (translate == 2) { - char *str = NULL; + const char *str = NULL; char *buf = NULL; if (sd->status.sex) { @@ -77,7 +77,6 @@ int format_sub(struct script_state* st, int translate) strcpy (buf, str); strcat (buf, "#0"); } - ShowWarning("going to translate: %s\n", buf); strcpy(line, lang_pctrans(buf, sd)); aFree (buf); idx = 4; -- cgit v1.2.3-70-g09d2