summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-20 16:56:01 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-20 16:56:01 +0300
commit32260349036f3af44873d13d12bedb3883bb17bf (patch)
tree1000c9b57d48b9b9943cee6a2860c7a300c264ac /src
parent8cc96fc6a97376a020b31fbb16196e3476f79ec5 (diff)
downloadevol-hercules-32260349036f3af44873d13d12bedb3883bb17bf.tar.gz
evol-hercules-32260349036f3af44873d13d12bedb3883bb17bf.tar.bz2
evol-hercules-32260349036f3af44873d13d12bedb3883bb17bf.tar.xz
evol-hercules-32260349036f3af44873d13d12bedb3883bb17bf.zip
fix compilation warnings.
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/utils/formatutils.c3
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;