summaryrefslogtreecommitdiff
path: root/src/common/sql.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-20 15:59:58 +0100
committerHaru <haru@dotalux.com>2016-02-20 15:59:58 +0100
commit71968e6985a2d6798505b84bc7ed22f5c6bfcfac (patch)
tree4740ae636d410980f379cc4bb3a969b49451c7c7 /src/common/sql.c
parent5b74faa8afd04771af7acb918072ea71a3db475f (diff)
parentb7f772294594c40ef1e18f9c044e5c4fe6b490f4 (diff)
downloadhercules-71968e6985a2d6798505b84bc7ed22f5c6bfcfac.tar.gz
hercules-71968e6985a2d6798505b84bc7ed22f5c6bfcfac.tar.bz2
hercules-71968e6985a2d6798505b84bc7ed22f5c6bfcfac.tar.xz
hercules-71968e6985a2d6798505b84bc7ed22f5c6bfcfac.zip
Merge pull request #1162 from 4144/flags
Add some compiler warning flags and fix new warnings
Diffstat (limited to 'src/common/sql.c')
-rw-r--r--src/common/sql.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/sql.c b/src/common/sql.c
index b1e77e636..ed93169ea 100644
--- a/src/common/sql.c
+++ b/src/common/sql.c
@@ -467,7 +467,7 @@ static int Sql_P_BindSqlDataType(MYSQL_BIND* bind, enum SqlDataType buffer_type,
case SQLDT_BLOB: bind->buffer_type = MYSQL_TYPE_BLOB;
break;
default:
- ShowDebug("Sql_P_BindSqlDataType: unsupported buffer type (%d)\n", buffer_type);
+ ShowDebug("Sql_P_BindSqlDataType: unsupported buffer type (%u)\n", buffer_type);
return SQL_ERROR;
}
bind->buffer = buffer;
@@ -870,7 +870,7 @@ void hercules_mysql_error_handler(unsigned int ecode) {
case 2003:/* Can't connect to MySQL (this error only happens here when failing to reconnect) */
if( mysql_reconnect_type == 1 ) {
if( ++retry > mysql_reconnect_count ) {
- ShowFatalError("MySQL has been unreachable for too long, %d reconnects were attempted. Shutting Down\n", retry);
+ ShowFatalError("MySQL has been unreachable for too long, %u reconnects were attempted. Shutting Down\n", retry);
exit(EXIT_FAILURE);
}
}
@@ -972,7 +972,7 @@ void Sql_HerculesUpdateCheck(Sql* self) {
fclose(ifp);
if( performed ) {
- ShowSQL("- detected %d new "CL_WHITE"SQL updates"CL_RESET"\n",performed);
+ ShowSQL("- detected %u new "CL_WHITE"SQL updates"CL_RESET"\n",performed);
ShowMessage("%s",StrBuf->Value(&buf));
ShowSQL("To manually skip, type: 'sql update skip <file name>'\n");
}