diff options
author | Haru <haru@dotalux.com> | 2016-01-08 14:41:38 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-24 21:00:32 +0100 |
commit | 9ee166316cded9aad0ace7e13f43a406f0e5400c (patch) | |
tree | 7b73c9def37bf9e04d737b8d7549875482b60023 /src/map/chrif.c | |
parent | 4b873e6e6520e827aae689bf15dd6adac97473f7 (diff) | |
download | hercules-9ee166316cded9aad0ace7e13f43a406f0e5400c.tar.gz hercules-9ee166316cded9aad0ace7e13f43a406f0e5400c.tar.bz2 hercules-9ee166316cded9aad0ace7e13f43a406f0e5400c.tar.xz hercules-9ee166316cded9aad0ace7e13f43a406f0e5400c.zip |
Removed several unnecessary explicit casts of the WFIFOP result
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 343892782..0f158b645 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -796,7 +796,7 @@ bool chrif_char_ask_name(int acc, const char* character_name, unsigned short ope WFIFOHEAD(chrif->fd,44); WFIFOW(chrif->fd,0) = 0x2b0e; WFIFOL(chrif->fd,2) = acc; - safestrncpy((char*)WFIFOP(chrif->fd,6), character_name, NAME_LENGTH); + safestrncpy(WFIFOP(chrif->fd,6), character_name, NAME_LENGTH); WFIFOW(chrif->fd,30) = operation_type; if (operation_type == CHAR_ASK_NAME_BAN || operation_type == CHAR_ASK_NAME_CHARBAN) { @@ -827,7 +827,7 @@ bool chrif_changesex(struct map_session_data *sd, bool change_account) WFIFOHEAD(chrif->fd,44); WFIFOW(chrif->fd,0) = 0x2b0e; WFIFOL(chrif->fd,2) = sd->status.account_id; - safestrncpy((char*)WFIFOP(chrif->fd,6), sd->status.name, NAME_LENGTH); + safestrncpy(WFIFOP(chrif->fd,6), sd->status.name, NAME_LENGTH); WFIFOW(chrif->fd,30) = change_account ? CHAR_ASK_NAME_CHANGESEX : CHAR_ASK_NAME_CHANGECHARSEX; if (!change_account) WFIFOB(chrif->fd,32) = sd->status.sex == SEX_MALE ? SEX_FEMALE : SEX_MALE; |