summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-15 18:59:46 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-15 18:59:46 +0000
commita0f92029367b04f7cf6001dddfc6dc76bf6b1aca (patch)
treed0cfe88648669c5a5ab8805d73ec479e28c71f64 /libc/sysdeps/linux/common
parenta29eb4f241edb90655a1a76efbaa2208a78ee5c4 (diff)
Kill 2 signedness warnings
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/getdents.c2
-rw-r--r--libc/sysdeps/linux/common/getdents64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c
index a04c41d30..7fe191d77 100644
--- a/libc/sysdeps/linux/common/getdents.c
+++ b/libc/sysdeps/linux/common/getdents.c
@@ -63,7 +63,7 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
dp = (struct dirent *) buf;
skdp = kdp = alloca (red_nbytes);
- retval = __syscall_getdents(fd, (char *)kdp, red_nbytes);
+ retval = __syscall_getdents(fd, (unsigned char *)kdp, red_nbytes);
if (retval == -1)
return -1;
diff --git a/libc/sysdeps/linux/common/getdents64.c b/libc/sysdeps/linux/common/getdents64.c
index 2ed7f42ee..57936d348 100644
--- a/libc/sysdeps/linux/common/getdents64.c
+++ b/libc/sysdeps/linux/common/getdents64.c
@@ -57,7 +57,7 @@ ssize_t __getdents64 (int fd, char *buf, size_t nbytes)
dp = (struct dirent64 *) buf;
skdp = kdp = alloca (red_nbytes);
- retval = __syscall_getdents64(fd, (char *)kdp, red_nbytes);
+ retval = __syscall_getdents64(fd, (unsigned char *)kdp, red_nbytes);
if (retval == -1)
return -1;