diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-26 17:19:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-26 17:34:58 +0300 |
commit | 248b23a44cb86ac825c0af2506fa93a4f617230e (patch) | |
tree | 414217dd18390a3af790327b5b40f01bb2780f1d /src/map | |
parent | 4f1b7c5f4a35b098560f047ae0579861f4ca96e4 (diff) | |
download | evol-hercules-248b23a44cb86ac825c0af2506fa93a4f617230e.tar.gz evol-hercules-248b23a44cb86ac825c0af2506fa93a4f617230e.tar.bz2 evol-hercules-248b23a44cb86ac825c0af2506fa93a4f617230e.tar.xz evol-hercules-248b23a44cb86ac825c0af2506fa93a4f617230e.zip |
fix compilation warnings.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 1 | ||||
-rw-r--r-- | src/map/pc.c | 1 | ||||
-rw-r--r-- | src/map/script.c | 8 | ||||
-rw-r--r-- | src/map/utils/formatutils.c | 2 |
4 files changed, 5 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 65f5468..68edd81 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -110,7 +110,6 @@ void eclif_charnameack(int *fdPtr, struct block_list *bl) static void eclif_send_additional_slots(struct map_session_data* sd, struct map_session_data* sd2) { - int f; const int id = sd->bl.id; const int fd = sd2->fd; diff --git a/src/map/pc.c b/src/map/pc.c index 0e59e59..315595e 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -106,7 +106,6 @@ void epc_equipitem_pos(struct map_session_data *sd, struct item_data *id, int *p void epc_unequipitem_pos(struct map_session_data *sd, int *nPtr, int *posPtr) { int pos = *posPtr; - int n = *nPtr; unequipPos(EQP_HEAD_LOW, head_bottom, LOOK_HEAD_BOTTOM); unequipPos(EQP_HEAD_TOP, head_top, LOOK_HEAD_TOP); diff --git a/src/map/script.c b/src/map/script.c index 618f89c..ca6907c 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -337,14 +337,14 @@ BUILDIN(setNpcDir) BUILDIN(rif) { - char *str = 0; + const char *str = 0; if (script_getnum(st, 2)) { str = script_getstr(st, 3); if (str) script_pushstr(st, aStrdup(str)); else - script_pushconststr(st, (unsigned char *)""); + script_pushconststr(st, (char *)""); } else if (script_hasdata(st, 4)) { @@ -352,11 +352,11 @@ BUILDIN(rif) if (str) script_pushstr(st, aStrdup(str)); else - script_pushconststr(st, (unsigned char *)""); + script_pushconststr(st, (char *)""); } else { - script_pushconststr(st, (unsigned char *)""); + script_pushconststr(st, (char *)""); } return true; diff --git a/src/map/utils/formatutils.c b/src/map/utils/formatutils.c index 741b2a9..c30af49 100644 --- a/src/map/utils/formatutils.c +++ b/src/map/utils/formatutils.c @@ -87,7 +87,7 @@ int format_sub(struct script_state* st, int translate) char *tmp = strstr(ptr, "@@"); if (!tmp) break; - char *item = script_getstr(st, idx); + const char *item = script_getstr(st, idx); int len = strlen(item); if (len > 50) break; |