]> git.stg.codes - stg.git/commitdiff
Variable scope narrowed
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 7 Feb 2012 10:30:07 +0000 (12:30 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 7 Feb 2012 10:30:07 +0000 (12:30 +0200)
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