author | ecalot
<ecalot> 2005-07-15 00:49:16 UTC |
committer | ecalot
<ecalot> 2005-07-15 00:49:16 UTC |
parent | ed9c14ee4868e7bb20e51e765bb2116de4867f6e |
poprecog/poprecog.c | +3 | -2 |
diff --git a/poprecog/poprecog.c b/poprecog/poprecog.c index 166a2fc..e94d31a 100644 --- a/poprecog/poprecog.c +++ b/poprecog/poprecog.c @@ -111,6 +111,7 @@ unsigned int optDebugMethod; /* Functions */ +#if 0 char *strToLower(char *ch) { char *begin; begin = ch; @@ -120,6 +121,7 @@ char *strToLower(char *ch) { } return begin; } +#endif int match(char *pat, char *str) { switch(*pat) @@ -616,13 +618,12 @@ void recognizeScreenShot(int screenShotID) { } void sortListOfScreenShots() { - int i; DIR *dir = opendir(screenShotsDir); struct dirent *file; screenShotsNumber = 0; while ((file = readdir(dir))) { - strToLower(file->d_name); + /* strToLower(file->d_name); file->d_name should not be edited, match is now case insensitive, so there is no problem */ if (match("*.bmp", file->d_name)) { screenShotList[screenShotsNumber] = (char *) malloc(strlen(file->d_name)+1); strcpy(screenShotList[screenShotsNumber], file->d_name);