diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-26 17:51:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-26 17:51:52 +0300 |
commit | c9673032ff9fb5b5c1a223432181d60184685d5a (patch) | |
tree | ca0137610ba9d08093fce187996921067a9725d4 /src/emap/parse.c | |
parent | 2114f859d5b1d6984809494870f5266f53d662c7 (diff) | |
download | evol-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/parse.c')
-rw-r--r-- | src/emap/parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
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)) |