diff options
Diffstat (limited to 'app/tools/dirent.c')
-rw-r--r-- | app/tools/dirent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/tools/dirent.c b/app/tools/dirent.c index 08ea800..bf6e7ff 100644 --- a/app/tools/dirent.c +++ b/app/tools/dirent.c @@ -21,7 +21,7 @@ extern "C" struct DIR { - long handle; /* -1 for failed rewind */ + intptr_t handle; /* -1 for failed rewind */ struct _finddata_t info; struct dirent result; /* d_name null iff first time */ char *name; /* null-terminated char string */ @@ -42,7 +42,7 @@ DIR *opendir(const char *name) { strcat(strcpy(dir->name, name), all); - if((dir->handle = (long) _findfirst(dir->name, &dir->info)) != -1) + if((dir->handle = _findfirst(dir->name, &dir->info)) != -1) { dir->result.d_name = 0; } @@ -116,7 +116,7 @@ void rewinddir(DIR *dir) if(dir && dir->handle != -1) { _findclose(dir->handle); - dir->handle = (long) _findfirst(dir->name, &dir->info); + dir->handle = _findfirst(dir->name, &dir->info); dir->result.d_name = 0; } else |