fixed exeman.c:580: warning: passing arg 1 of `wwmatch' discards qualifiers from pointer target type

This commit is contained in:
zolliker
2005-08-24 09:37:21 +00:00
parent 020f73e01c
commit 7c3331f95a

View File

@ -577,7 +577,7 @@ static void searchDir(char *pPath, char *pattern, pDynString result){
} }
currentFile = readdir(currentdir); currentFile = readdir(currentdir);
while(currentFile != NULL){ while(currentFile != NULL){
if(wwmatch((const char *)pattern, currentFile->d_name)){ if(wwmatch(pattern, currentFile->d_name)){
DynStringConcat(result,currentFile->d_name); DynStringConcat(result,currentFile->d_name);
DynStringConcatChar(result,'\n'); DynStringConcatChar(result,'\n');
} }