diff options
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; |