summaryrefslogtreecommitdiff
path: root/src/login/account_sql.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-08 14:41:38 +0100
committerHaru <haru@dotalux.com>2016-02-24 21:00:32 +0100
commit9ee166316cded9aad0ace7e13f43a406f0e5400c (patch)
tree7b73c9def37bf9e04d737b8d7549875482b60023 /src/login/account_sql.c
parent4b873e6e6520e827aae689bf15dd6adac97473f7 (diff)
downloadhercules-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/login/account_sql.c')
-rw-r--r--src/login/account_sql.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/account_sql.c b/src/login/account_sql.c
index be797c443..2a7401f1b 100644
--- a/src/login/account_sql.c
+++ b/src/login/account_sql.c
@@ -791,7 +791,7 @@ void mmo_send_accreg2(AccountDB* self, int fd, int account_id, int char_id) {
WFIFOB(fd, plen) = (unsigned char)len;/* won't be higher; the column size is 32 */
plen += 1;
- safestrncpy((char*)WFIFOP(fd,plen), data, len);
+ safestrncpy(WFIFOP(fd,plen), data, len);
plen += len;
SQL->GetData(sql_handle, 1, &data, NULL);
@@ -805,7 +805,7 @@ void mmo_send_accreg2(AccountDB* self, int fd, int account_id, int char_id) {
WFIFOB(fd, plen) = (unsigned char)len;/* won't be higher; the column size is 254 */
plen += 1;
- safestrncpy((char*)WFIFOP(fd,plen), data, len);
+ safestrncpy(WFIFOP(fd,plen), data, len);
plen += len;
WFIFOW(fd, 14) += 1;
@@ -859,7 +859,7 @@ void mmo_send_accreg2(AccountDB* self, int fd, int account_id, int char_id) {
WFIFOB(fd, plen) = (unsigned char)len;/* won't be higher; the column size is 32 */
plen += 1;
- safestrncpy((char*)WFIFOP(fd,plen), data, len);
+ safestrncpy(WFIFOP(fd,plen), data, len);
plen += len;
SQL->GetData(sql_handle, 1, &data, NULL);