From 1723d1d8cd0684c01e4f48d4dc1ea426c750e2ca Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 19 Feb 2016 12:43:43 +0100 Subject: Removed various redundant typecasts Signed-off-by: Haru --- src/login/login.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/login') 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)) { -- cgit v1.2.3-70-g09d2