summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-19 12:43:43 +0100
committerHaru <haru@dotalux.com>2016-02-24 21:00:33 +0100
commit1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca (patch)
tree179bca6aa45cf1f1db7139ab7e7b806669587905 /src/login
parent9ee166316cded9aad0ace7e13f43a406f0e5400c (diff)
downloadhercules-1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca.tar.gz
hercules-1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca.tar.bz2
hercules-1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca.tar.xz
hercules-1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca.zip
Removed various redundant typecasts
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/login')
-rw-r--r--src/login/login.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 73d2be9dd..bd826b300 100644
--- a/src/login/login.c
+++ b/src/login/login.c
@@ -527,12 +527,12 @@ void login_fromchar_parse_ban(int fd, int id, const char *const ip)
struct mmo_account acc;
int account_id = RFIFOL(fd,2);
- int year = (short)RFIFOW(fd,6);
- int month = (short)RFIFOW(fd,8);
- int mday = (short)RFIFOW(fd,10);
- int hour = (short)RFIFOW(fd,12);
- int min = (short)RFIFOW(fd,14);
- int sec = (short)RFIFOW(fd,16);
+ int year = RFIFOW(fd,6);
+ int month = RFIFOW(fd,8);
+ int mday = RFIFOW(fd,10);
+ int hour = RFIFOW(fd,12);
+ int min = RFIFOW(fd,14);
+ int sec = RFIFOW(fd,16);
RFIFOSKIP(fd,18);
if (!accounts->load_num(accounts, &acc, account_id)) {