From f49a08317b9c2fffcb333b9a40f877d95bb40071 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 11 Oct 2008 21:56:35 +0000 Subject: FreeBSD is very strict about vararg types and aborts at runtime if the type passed to va_arg() has been promoted, so let's keep it happy by using ints instead. --- lib/intercept/intercept.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/intercept') diff --git a/lib/intercept/intercept.cpp b/lib/intercept/intercept.cpp index 9a15971a..c6399a1c 100644 --- a/lib/intercept/intercept.cpp +++ b/lib/intercept/intercept.cpp @@ -255,7 +255,7 @@ extern "C" int { va_list ap; va_start(ap, flags); - mode = va_arg(ap, mode_t); + mode = va_arg(ap, int); va_end(ap); } @@ -291,7 +291,7 @@ open64 (__const char *path, int flags, ...) { va_list ap; va_start(ap, flags); - mode = va_arg(ap, mode_t); + mode = va_arg(ap, int); va_end(ap); } -- cgit v1.2.3