From d5e8c4e4b75636451782098929699eb97cebebe4 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 16 Nov 2014 01:56:27 +0100 Subject: Moved sql_s into sql.c Signed-off-by: Haru --- src/common/sql.c | 2 ++ src/common/sql.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/sql.c b/src/common/sql.c index 8ae9d3cdb..c75b90cec 100644 --- a/src/common/sql.c +++ b/src/common/sql.c @@ -25,6 +25,8 @@ void hercules_mysql_error_handler(unsigned int ecode); int mysql_reconnect_type; unsigned int mysql_reconnect_count; +struct sql_interface sql_s; + /// Sql handle struct Sql { StringBuf buf; diff --git a/src/common/sql.h b/src/common/sql.h index b1f1f41c3..9a79b3f33 100644 --- a/src/common/sql.h +++ b/src/common/sql.h @@ -267,7 +267,7 @@ struct sql_interface { void (*StmtShowDebug_)(SqlStmt* self, const char* debug_file, const unsigned long debug_line); -} sql_s; +}; struct sql_interface *SQL; -- cgit v1.2.3-70-g09d2