From d360017933fc0b2985e37eafd455a4d8e15878d7 Mon Sep 17 00:00:00 2001 From: Andrew Niefer Date: Mon, 30 Jul 2007 17:58:19 +0000 Subject: bug 196883 --- bundles/org.eclipse.equinox.executable/library/eclipseCommon.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'bundles/org.eclipse.equinox.executable/library/eclipseCommon.c') diff --git a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c index 4499417aa..05e12c682 100644 --- a/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c +++ b/bundles/org.eclipse.equinox.executable/library/eclipseCommon.c @@ -47,7 +47,7 @@ _TCHAR* wsArg = _T_ECLIPSE(DEFAULT_WS); /* the SWT supported GUI to be us #ifndef _WIN32 static _TCHAR* filterPrefix = NULL; /* prefix for the find files filter */ #endif -static int prefixLength = 0; +static size_t prefixLength = 0; typedef struct { int segment[3]; @@ -181,7 +181,7 @@ int setenv (const char *name, const char *value, int replace) _TCHAR* findCommand( _TCHAR* command ) { _TCHAR* cmdPath; - int length; + size_t length; _TCHAR* ch; _TCHAR* dir; _TCHAR* path; @@ -250,7 +250,8 @@ _TCHAR* findCommand( _TCHAR* command ) /* Remove quotes */ if (_tcschr( cmdPath, _T_ECLIPSE('"') ) != NULL) { - int i = 0, j = 0, c; + int i = 0, j = 0; + _TCHAR c; length = _tcslen( cmdPath ); while (i < length) { c = cmdPath[ i++ ]; @@ -358,7 +359,7 @@ static int filter(const struct dirent *dir) { _TCHAR* findFile( _TCHAR* path, _TCHAR* prefix) { struct _stat stats; - int pathLength; + size_t pathLength; _TCHAR* candidate = NULL; _TCHAR* result = NULL; -- cgit v1.2.3