summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-09-01 19:10:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-09-01 19:10:01 +0000
commitcf04e8aca91e40a0d8096d01462439d650a63d6e (patch)
treed6f18b1e0e99ac13a104b120a2fadd0e5567e948 /cpukit/libcsupport
parent*** empty log message *** (diff)
downloadrtems-cf04e8aca91e40a0d8096d01462439d650a63d6e.tar.bz2
*** empty log message ***
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/readdir.c3
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)