summaryrefslogtreecommitdiff
path: root/src/emap/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-26 17:51:52 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-26 17:51:52 +0300
commitc9673032ff9fb5b5c1a223432181d60184685d5a (patch)
treeca0137610ba9d08093fce187996921067a9725d4 /src/emap/send.c
parent2114f859d5b1d6984809494870f5266f53d662c7 (diff)
downloadevol-hercules-c9673032ff9fb5b5c1a223432181d60184685d5a.tar.gz
evol-hercules-c9673032ff9fb5b5c1a223432181d60184685d5a.tar.bz2
evol-hercules-c9673032ff9fb5b5c1a223432181d60184685d5a.tar.xz
evol-hercules-c9673032ff9fb5b5c1a223432181d60184685d5a.zip
Remove useless casts after server update.
Diffstat (limited to 'src/emap/send.c')
-rw-r--r--src/emap/send.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emap/send.c b/src/emap/send.c
index 981d585..1c4f819 100644
--- a/src/emap/send.c
+++ b/src/emap/send.c
@@ -75,7 +75,7 @@ void send_local_message(int fd, struct block_list* bl, const char* msg)
WFIFOW (fd, 0) = 0x8d;
WFIFOW (fd, 2) = msg_len + 8;
WFIFOL (fd, 4) = bl->id;
- safestrncpy((char*)WFIFOP(fd, 8), msg, msg_len);
+ safestrncpy(WFIFOP(fd, 8), msg, msg_len);
WFIFOSET (fd, msg_len + 8);
}
@@ -279,7 +279,7 @@ void send_changemusic_brodcast(const int map, const char *music)
bl.m = map;
WBUFW (buf, 0) = 0xb05;
WBUFW (buf, 2) = sz;
- strcpy ((char *)WBUFP (buf, 4), music);
+ strcpy (WBUFP (buf, 4), music);
clif->send (buf, sz, &bl, ALL_SAMEMAP);
aFree(buf);
}
@@ -297,7 +297,7 @@ void send_changenpc_title (TBL_PC *sd, const int npcId, const char *name)
WFIFOW (fd, 2) = sz;
WFIFOL (fd, 4) = npcId;
WFIFOW (fd, 8) = len;
- strcpy ((char*)WFIFOP (fd, 10), name);
+ strcpy (WFIFOP (fd, 10), name);
WFIFOSET (fd, sz);
}
@@ -308,7 +308,7 @@ void send_join_ack(int fd, const char *const name, int flag)
WFIFOHEAD (fd, 27);
WFIFOW (fd, 0) = 0xb08;
- safestrncpy ((char*)WFIFOP (fd, 2), name, 24);
+ safestrncpy (WFIFOP (fd, 2), name, 24);
WFIFOB (fd, 26) = flag;
WFIFOSET (fd, 27);
}
@@ -409,7 +409,7 @@ void send_setwall(int m, int layer, int x1, int y1, int x2, int y2, int mask, en
WBUFW(buf, 8) = y2;
WBUFL(buf, 10) = mask;
WBUFL(buf, 14) = layer;
- mapindex->getmapname_ext(map->list[m].custom_name ? map->list[map->list[m].instance_src_map].name : map->list[m].name,(char*)WBUFP(buf, 18));
+ mapindex->getmapname_ext(map->list[m].custom_name ? map->list[map->list[m].instance_src_map].name : map->list[m].name, WBUFP(buf, 18));
struct block_list dummy_bl;
dummy_bl.type = BL_NUL;
@@ -450,6 +450,6 @@ void send_pc_skin(int fd, int npcId, const char *const skin)
WFIFOW(fd, 0) = 0xb1c;
WFIFOW(fd, 2) = sz;
WFIFOL(fd, 4) = npcId;
- strcpy((char*)WFIFOP (fd, 8), skin);
+ strcpy(WFIFOP (fd, 8), skin);
WFIFOSET(fd, sz);
}