From c9673032ff9fb5b5c1a223432181d60184685d5a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Feb 2016 17:51:52 +0300 Subject: Remove useless casts after server update. --- src/emap/parse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/emap/parse.c') diff --git a/src/emap/parse.c b/src/emap/parse.c index 226bf9c..7e45c5a 100644 --- a/src/emap/parse.c +++ b/src/emap/parse.c @@ -43,7 +43,7 @@ void map_parse_join_channel(int fd) if (!sd) return; - safestrncpy(name, (char*)RFIFOP(fd, 2), 24); + safestrncpy(name, RFIFOP(fd, 2), 24); if (name[0] == '#') p = name + 1; else @@ -73,7 +73,7 @@ void map_parse_part_channel(int fd) if (!sd) return; - safestrncpy(name, (char*)RFIFOP(fd, 2), 24); + safestrncpy(name, RFIFOP(fd, 2), 24); if (name[0] == '#') p = name + 1; else @@ -120,7 +120,7 @@ void map_parse_pet_say(int fd) const int len = RFIFOW(fd, 2); if (len > 500 || len < 6) return; - safestrncpy(message, (char*)RFIFOP(fd, 4), len - 4); + safestrncpy(message, RFIFOP(fd, 4), len - 4); send_slave_say(sd, &sd->pd->bl, sd->pd->pet.name, message); } @@ -184,7 +184,7 @@ void map_parse_homun_say(int fd) const int len = RFIFOW(fd, 2); if (len > 500 || len < 6) return; - safestrncpy(message, (char*)RFIFOP(fd, 4), len - 4); + safestrncpy(message, RFIFOP(fd, 4), len - 4); if (sd->md && sd->md->db) send_slave_say(sd, &sd->md->bl, sd->md->db->name, message); else if (sd->hd && homun_alive(sd->hd)) -- cgit v1.2.3-70-g09d2