diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-05 05:50:11 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-02-05 05:50:11 +0000 |
| commit | 306b3cfddaeafd14197c4e59ea42803f45f049be (patch) | |
| tree | 0528793bb2bc621a60a588fd294e4e5013f1ca30 | |
| parent | 3135159411168fcface79912df7a836eb01b7e13 (diff) | |
| download | uClibc-alpine-306b3cfddaeafd14197c4e59ea42803f45f049be.tar.bz2 uClibc-alpine-306b3cfddaeafd14197c4e59ea42803f45f049be.tar.xz | |
Clean up warnings and cruft.
| -rw-r--r-- | libc/sysdeps/linux/common/getdents.c | 2 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/getdents64.c | 2 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/syscalls.h | 1 | ||||
| -rw-r--r-- | libc/sysdeps/linux/common/write.c | 5 |
4 files changed, 2 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c index 4db513a62..f7f3a2f12 100644 --- a/libc/sysdeps/linux/common/getdents.c +++ b/libc/sysdeps/linux/common/getdents.c @@ -61,7 +61,7 @@ ssize_t attribute_hidden __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 f65e9e70b..6eb5418a0 100644 --- a/libc/sysdeps/linux/common/getdents64.c +++ b/libc/sysdeps/linux/common/getdents64.c @@ -66,7 +66,7 @@ ssize_t attribute_hidden __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; diff --git a/libc/sysdeps/linux/common/syscalls.h b/libc/sysdeps/linux/common/syscalls.h index 743ac8a74..88d9b4dcf 100644 --- a/libc/sysdeps/linux/common/syscalls.h +++ b/libc/sysdeps/linux/common/syscalls.h @@ -21,7 +21,6 @@ */ #define _GNU_SOURCE -#define _LARGEFILE64_SOURCE #include <features.h> #include <errno.h> #include <sys/types.h> diff --git a/libc/sysdeps/linux/common/write.c b/libc/sysdeps/linux/common/write.c index 8a1d57a82..651365fed 100644 --- a/libc/sysdeps/linux/common/write.c +++ b/libc/sysdeps/linux/common/write.c @@ -14,8 +14,3 @@ attribute_hidden _syscall3(ssize_t, __write, int, fd, const __ptr_t, buf, size_t, count); strong_alias(__write,write) weak_alias(__write,__libc_write) -#if 0 -/* Stupid libgcc.a from gcc 2.95.x uses __write in pure.o - * which is a blatent GNU libc-ism... */ -weak_alias(__libc_write, __write) -#endif |
