summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-28 10:48:04 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-28 10:48:04 +0000
commit929dff094c745c95d8ccce3ac7c831a9f9c6f3b9 (patch)
tree7cf67e7a0879f00b982b30b9b239d066b286ba57 /src
parent08d30308c4b2055d1c0188a2a570ab91c5d972a7 (diff)
downloadhercules-929dff094c745c95d8ccce3ac7c831a9f9c6f3b9.tar.gz
hercules-929dff094c745c95d8ccce3ac7c831a9f9c6f3b9.tar.bz2
hercules-929dff094c745c95d8ccce3ac7c831a9f9c6f3b9.tar.xz
hercules-929dff094c745c95d8ccce3ac7c831a9f9c6f3b9.zip
Fixed "warning: long unsigned int format, unsigned int arg" in parse_login (login_sql\login.c)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7941 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/login_sql/login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index ff42cc8ca..4d293fdc7 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -1767,8 +1767,8 @@ int parse_login(int fd) {
}
} //End login log of error.
if ((result == 1) && (dynamic_pass_failure_ban != 0) && log_login){ // failed password
- sprintf(tmpsql,"SELECT count(*) FROM `%s` WHERE `ip` = '%lu' AND `rcode` = '1' AND `time` > NOW() - INTERVAL %d MINUTE",
- loginlog_db,ntohl(ipl), dynamic_pass_failure_ban_time); //how many times filed account? in one ip.
+ sprintf(tmpsql,"SELECT count(*) FROM `%s` WHERE `ip` = '%u' AND `rcode` = '1' AND `time` > NOW() - INTERVAL %d MINUTE",
+ loginlog_db,(unsigned int)ntohl(ipl), dynamic_pass_failure_ban_time); //how many times filed account? in one ip.
if(mysql_query(&mysql_handle, tmpsql)) {
ShowSQL("DB error - %s\n",mysql_error(&mysql_handle));
ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql);