summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-08-25 17:15:13 +0200
committerHaru <haru@dotalux.com>2018-08-25 18:50:24 +0200
commit4da22050a04f9cd45097dbdc678ab20971f5570b (patch)
tree4b164ce3b338c216787403e79898facb00834231 /src
parent8776be77524450e321064f0a65c8f941284e1c34 (diff)
downloadhercules-4da22050a04f9cd45097dbdc678ab20971f5570b.tar.gz
hercules-4da22050a04f9cd45097dbdc678ab20971f5570b.tar.bz2
hercules-4da22050a04f9cd45097dbdc678ab20971f5570b.tar.xz
hercules-4da22050a04f9cd45097dbdc678ab20971f5570b.zip
Fix some const violations detected with the const-safe strchr() implementation
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/npc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index fd8a3c783..a5955a9bc 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10891,7 +10891,7 @@ static void clif_parse_WisMessage(int fd, struct map_session_data *sd)
// Lordalfa - Paperboy - To whisper NPC commands //
//-------------------------------------------------------//
if (target[0] && (strncasecmp(target,"NPC:",4) == 0) && (strlen(target) > 4)) {
- const char *str = target+4; //Skip the NPC: string part.
+ char *str = target + 4; // Skip the NPC: string part.
struct npc_data *nd;
if ((nd = npc->name2id(str))) {
char split_data[NUM_WHISPER_VAR][CHAT_SIZE_MAX];
diff --git a/src/map/npc.c b/src/map/npc.c
index f80f8443a..a49fb08eb 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2868,7 +2868,7 @@ static const char *npc_parse_shop(const char *w1, const char *w2, const char *w3
struct npc_item_list *items = NULL;
size_t items_count = 40; // Starting items size
- char *p;
+ const char *p;
int x, y, dir, m, i, class_;
struct npc_data *nd;
enum npc_subtype type;