diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-22 16:48:41 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-22 16:48:41 +0000 |
commit | 2ad5753419156c16eeea45fc5c10afeb9d4bdd62 (patch) | |
tree | 71e0d2f1a74cd59ddbdc823ad3471cfd73269cb6 /cpukit/libmisc | |
parent | 2010-05-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-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/libmisc')
-rw-r--r-- | cpukit/libmisc/shell/fts.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |