浏览代码

db_mysql: compile fix for gcc 2.95

- variables must be declared at the beginning of a block
Andrei Pelinescu-Onciul 16 年之前
父节点
当前提交
030ed0e68b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules/db_mysql/km_my_con.c

+ 2 - 1
modules/db_mysql/km_my_con.c

@@ -136,9 +136,10 @@ struct my_con* db_mysql_new_connection(const struct db_id* id)
  */
 void db_mysql_free_connection(struct pool_con* con)
 {
+	struct my_con * _c;
+	
 	if (!con) return;
 
-	struct my_con * _c;
 	_c = (struct my_con*) con;
 
 	if (_c->res) mysql_free_result(_c->res);