]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/mysql/mysql_store.cpp
Added migration scripts for new daily fee algo.
[stg.git] / projects / stargazer / plugins / store / mysql / mysql_store.cpp
index e52c055d8925d7676f2e9e700fb01e2e8ffdb0b4..9d8f9c8348dfc5700c2473dd33d46922b90a91d8 100644 (file)
@@ -163,11 +163,11 @@ MYSQL_STORE::MYSQL_STORE()
 //-----------------------------------------------------------------------------
 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