Fix compile with mingw32 for win32, removed int decl in for loop.

This commit is contained in:
Klaas Freitag 2012-10-31 21:08:08 +01:00
parent abb3829197
commit 803b3fb542

View file

@ -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] != '@') {