Fix some compile warnings
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1210
This commit is contained in:
parent
d3ee970936
commit
10a29d64de
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
DIR * opendir(const char *dirname) {
|
||||
|
||||
static DIR dir;
|
||||
int len;
|
||||
size_t len;
|
||||
|
||||
/* Stash the directory name */
|
||||
strcpy(dir.pathName,dirname);
|
||||
|
@ -81,7 +81,7 @@ struct dirent * readdir(DIR *dirp) {
|
|||
memset(&d,'\0', sizeof(struct dirent));
|
||||
|
||||
strcpy(d.d_name,dirp->findFileData.cFileName);
|
||||
d.d_namlen = strlen(d.d_name);
|
||||
d.d_namlen = (char)strlen(d.d_name);
|
||||
|
||||
return &d;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue