Fix several VC++ warnings

git-svn-id: svn://svn.cc65.org/cc65/trunk@39 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-06-08 21:02:46 +00:00
parent 386c3d412d
commit 048930265c
4 changed files with 5 additions and 6 deletions

View File

@@ -99,7 +99,6 @@ static char* Find (const char* Path, const char* File)
*/
{
const char* P;
unsigned Count;
int Max;
char PathName [FILENAME_MAX];
@@ -118,7 +117,7 @@ static char* Find (const char* Path, const char* File)
/* Start the search */
while (*P) {
/* Copy the next path element into the buffer */
Count = 0;
int Count = 0;
while (*P != '\0' && *P != ';' && Count < Max) {
PathName [Count++] = *P++;
}