summaryrefslogtreecommitdiff
path: root/src/emap/clif.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/clif.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/clif.c')
-rw-r--r--src/emap/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index 7aaf3d0..11b542f 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -1189,7 +1189,7 @@ void eclif_sendbgemblem_area(struct map_session_data *sd)
WBUFW(buf, 0) = 0xb1a;
WBUFL(buf, 2) = sd->bl.id;
- safestrncpy((char*)WBUFP(buf,6), sd->status.name, NAME_LENGTH); // name don't show in screen.
+ safestrncpy(WBUFP(buf,6), sd->status.name, NAME_LENGTH); // name don't show in screen.
WBUFW(buf, 30) = sd->bg_id;
WBUFW(buf, 32) = data->teamId;
clif->send(buf, 34, &sd->bl, AREA);
@@ -1206,7 +1206,7 @@ void eclif_sendbgemblem_single(int *fdPtr, struct map_session_data *sd)
WFIFOHEAD(fd, 34);
WFIFOW(fd, 0) = 0xb1a;
WFIFOL(fd, 2) = sd->bl.id;
- safestrncpy((char*)WFIFOP(fd, 6), sd->status.name, NAME_LENGTH);
+ safestrncpy(WFIFOP(fd, 6), sd->status.name, NAME_LENGTH);
WFIFOW(fd, 30) = sd->bg_id;
WFIFOW(fd, 32) = data->teamId;
WFIFOSET(fd, 34);
@@ -1236,6 +1236,6 @@ void eclif_disp_message(struct block_list* src,
WBUFW(buf, 0) = 0x8e;
WBUFW(buf, 2) = len + 5;
- safestrncpy((char*)WBUFP(buf, 4), mes, len + 1);
+ safestrncpy(WBUFP(buf, 4), mes, len + 1);
clif->send(buf, WBUFW(buf, 2), src, *targetPtr);
}