summaryrefslogtreecommitdiff
path: root/libpthread
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-21 00:00:45 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-21 00:00:45 +0000
commit2f2d9d69ac721b09eab8a347b9a31606560c2604 (patch)
tree9c16a6b9c9721e301ea49f5d38888750256bf046 /libpthread
parent134080cf905bde902056902c3408377a0b460bda (diff)
mode_t was being promoted to an int by gcc's __builtin_va_arg, causing bad
things to happen. This makes it explicit, so pthread using apps are no longer broken... -Erik
Diffstat (limited to 'libpthread')
-rw-r--r--libpthread/linuxthreads/wrapsyscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/wrapsyscall.c b/libpthread/linuxthreads/wrapsyscall.c
index ba6d1b860..847870862 100644
--- a/libpthread/linuxthreads/wrapsyscall.c
+++ b/libpthread/linuxthreads/wrapsyscall.c
@@ -109,13 +109,13 @@ CANCELABLE_SYSCALL (int, nanosleep, (const struct timespec *requested_time,
/* open(2). */
CANCELABLE_SYSCALL_VA (int, open, (const char *pathname, int flags, ...),
- (pathname, flags, va_arg (ap, mode_t)), flags)
+ (pathname, flags, va_arg (ap, int)), flags)
#ifdef __UCLIBC_HAVE_LFS__
/* open64(3). */
CANCELABLE_SYSCALL_VA (int, open64, (const char *pathname, int flags, ...),
- (pathname, flags, va_arg (ap, mode_t)), flags)
+ (pathname, flags, va_arg (ap, int)), flags)
#endif
/* pause(2). */