diff options
-rw-r--r-- | cpukit/ChangeLog | 1 | ||||
-rw-r--r-- | cpukit/libcsupport/src/getpwent.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index a4b19281dd..416a2fb40e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,6 @@ 2007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org> + * libcsupport/src/getpwent.c: Remove bogus cast to long. * libnetworking/libc/strsep.c: Don't build if provided by libc. * libnetworking/libc/rcmd.c: Eliminate __P(). Cosmetics. * libnetworking/sys/select.h: Remove selrecord, selwakeup (Unused). diff --git a/cpukit/libcsupport/src/getpwent.c b/cpukit/libcsupport/src/getpwent.c index 1236ccacca..af77444a86 100644 --- a/cpukit/libcsupport/src/getpwent.c +++ b/cpukit/libcsupport/src/getpwent.c @@ -317,7 +317,7 @@ static int scangr( */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) return 0; - grp->gr_mem = (char **)(((unsigned long)buffer + 15) & ~15); + grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); /* * Fill in pointer array |