From 803b3fb54287618b21e233635134115870c1fb92 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 31 Oct 2012 21:08:08 +0100 Subject: [PATCH] Fix compile with mingw32 for win32, removed int decl in for loop. --- client/csync_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/csync_client.c b/client/csync_client.c index 74c801be3..727543796 100644 --- a/client/csync_client.c +++ b/client/csync_client.c @@ -168,6 +168,7 @@ int main(int argc, char **argv) { CSYNC *csync; char errbuf[256] = {0}; int curser = 0; + int i; struct argument_s arguments; @@ -196,7 +197,7 @@ int main(int argc, char **argv) { * Protect password from ps listing * Find and replace :password@ by :********@ */ - for (int i = 0; i < argc; i++) { + for (i = 0; i < argc; i++) { if (csync_fnmatch("*://*:*@*", argv[i], 0) == 0) { curser = strlen(argv[i]); while(curser > 0 && argv[i][curser] != '@') {