summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2010-05-22 16:48:41 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2010-05-22 16:48:41 +0000
commit2ad5753419156c16eeea45fc5c10afeb9d4bdd62 (patch)
tree71e0d2f1a74cd59ddbdc823ad3471cfd73269cb6 /cpukit
parent2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-2ad5753419156c16eeea45fc5c10afeb9d4bdd62.tar.bz2
2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/fts.c: Cast to uintptr_t instead of long for better 16bit target compliance.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libmisc/shell/fts.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index d668860b53..50e3193d7d 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,9 @@
2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * libmisc/shell/fts.c: Cast to uintptr_t instead of long for better
+ 16bit target compliance.
+
+2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Use "16 bit int" arg
in call to srand if "32 bit int" doesn't fit into "int".
diff --git a/cpukit/libmisc/shell/fts.c b/cpukit/libmisc/shell/fts.c
index e960a0ab19..63d4eef393 100644
--- a/cpukit/libmisc/shell/fts.c
+++ b/cpukit/libmisc/shell/fts.c
@@ -59,6 +59,7 @@ __RCSID("$NetBSD: fts.c,v 1.40 2009/11/02 17:17:34 stacktic Exp $");
#include <fcntl.h>
#include <fts.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include <unistd.h>
@@ -1055,7 +1056,7 @@ fts_alloc(FTS *sp, const char *name, size_t namelen)
if (!ISSET(FTS_NOSTAT))
p->fts_statp = (__fts_stat_t *)ALIGN(
- (unsigned long)(p->fts_name + namelen + 2));
+ (uintptr_t)(p->fts_name + namelen + 2));
#else
if ((p = malloc(sizeof(FTSENT) + namelen)) == NULL)
return (NULL);