summaryrefslogtreecommitdiff
path: root/src/login_sql/login.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-18 16:07:16 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-18 16:07:16 +0000
commit2c89cc9421cb3640750e90168b62e897f7444302 (patch)
tree126ad46731a32dbc017bb5db5ba3ba3e1b643f40 /src/login_sql/login.c
parent7e7ac07deb778e314d2372736c6939a86dc6ca0c (diff)
downloadhercules-2c89cc9421cb3640750e90168b62e897f7444302.tar.gz
hercules-2c89cc9421cb3640750e90168b62e897f7444302.tar.bz2
hercules-2c89cc9421cb3640750e90168b62e897f7444302.tar.xz
hercules-2c89cc9421cb3640750e90168b62e897f7444302.zip
* Script engine:
- calling functions without using the return value doesn't generate warnings - more work on Ticket #41 * Took care of two warnings and a minor change to the makefile. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10025 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/login_sql/login.c')
-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 c79b57b4b..e2d63626e 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -1515,7 +1515,7 @@ int parse_login(int fd)
}
}
} else {
- char* error;
+ const char* error = "";
WFIFOHEAD(fd,23);
if (login_config.log_login)
{
@@ -1547,7 +1547,7 @@ int parse_login(int fd)
default : error = "Unknown Error."; break;
}
- sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%u', '%s', '%d','login failed : %s')", loginlog_db, ntohl(ipl), t_uid, result, error);
+ sprintf(tmpsql, "INSERT DELAYED INTO `%s`(`time`,`ip`,`user`,`rcode`,`log`) VALUES (NOW(), '%lu', '%s', '%d','login failed : %s')", loginlog_db, ntohl(ipl), t_uid, result, error);
//query
if(mysql_query(&mysql_handle, tmpsql)) {