]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/mysql/mysql_store.cpp
Fixed compilation with linux-3.5.1 and higher.
[stg.git] / projects / stargazer / plugins / store / mysql / mysql_store.cpp
index e52c055d8925d7676f2e9e700fb01e2e8ffdb0b4..8e04f5a5b847c128726a691a7650f3367efd1ed7 100644 (file)
@@ -157,17 +157,18 @@ MYSQL_STORE::MYSQL_STORE()
     : errorStr(),
       version("mysql_store v.0.67"),
       storeSettings(),
-      settings()
+      settings(),
+      logger(GetPluginLogger(GetStgLogger(), "store_mysql"))
 {
 };
 //-----------------------------------------------------------------------------
 int    MYSQL_STORE::MysqlQuery(const char* sQuery,MYSQL * sock) const
 {
-    int ret,i;
+    int ret;
 
     if( (ret = mysql_query(sock,sQuery)) )
     {
-        for(i=0; i<RepitTimes; i++)
+        for(int i=0; i<RepitTimes; i++)
         {
             if( (ret = mysql_query(sock,sQuery)) )
                 ;//need to send error result