X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2FmysqlConn.c;h=41f049570938d781ef8ec7fa755aa7d0ddd92ec1;hb=706e48b1e666054030c491d864f740071e390038;hp=3c2bcbeb3cb9391d85a54212d2b0e255d0d1f3dc;hpb=b53d0c5f88063f075a48a0426f9d5d6b3490b9fc;p=NeonServV5.git diff --git a/src/mysqlConn.c b/src/mysqlConn.c index 3c2bcbe..41f0495 100644 --- a/src/mysqlConn.c +++ b/src/mysqlConn.c @@ -18,6 +18,8 @@ #include "mysqlConn.h" #define DATABASE_VERSION "15" +static void show_mysql_error(); + struct mysql_conn_struct { unsigned int tid; MYSQL *mysql_conn; @@ -46,7 +48,7 @@ static char *mysql_host, *mysql_user, *mysql_pass, *mysql_base; static pthread_mutex_t synchronized; #endif -void check_mysql() { +static void check_mysql() { MYSQL *mysql_conn = get_mysql_conn(); int errid; if((errid = mysql_ping(mysql_conn))) { @@ -200,7 +202,7 @@ void free_mysql() { mysql_conns = NULL; } -void show_mysql_error() { +static void show_mysql_error() { MYSQL *mysql_conn = get_mysql_conn(); //show mysql_error() putlog(LOGLEVEL_ERROR, "MySQL Error: %s\n", mysql_error(mysql_conn));