diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:24 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2022-02-06 16:04:24 +0100 |
commit | 5d2c2b27a6323e2666378b986129b2a7c2c39e5c (patch) | |
tree | ce8982b6c0111f79791068de2c2d4c6ce3138a49 /app/tools/dirent.c | |
parent | b623f5953691b2a0614e6f1f4def86bdbb9a4113 (diff) |
New upstream version 5.2.2GAupstream/5.2.2GA
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 |