diff options
Diffstat (limited to 'cpukit/libcsupport/src/readdir.c')
-rw-r--r-- | cpukit/libcsupport/src/readdir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/readdir.c b/cpukit/libcsupport/src/readdir.c index bcff3d951a..36f4ccf879 100644 --- a/cpukit/libcsupport/src/readdir.c +++ b/cpukit/libcsupport/src/readdir.c @@ -45,6 +45,7 @@ static char sccsid[] = "@(#)readdir.c 5.7 (Berkeley) 6/1/90"; #endif #include <dirent.h> +#include <stdint.h> int getdents( int dd_fd, @@ -77,7 +78,7 @@ register DIR *dirp; { continue; } dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); - if ((int)dp & 03) /* bogus pointer check */ + if ((intptr_t)dp & 03) /* bogus pointer check */ return NULL; if (dp->d_reclen <= 0 || dp->d_reclen > dirp->dd_len + 1 - dirp->dd_loc) |