diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-10-11 21:56:35 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-10-11 21:56:35 +0000 |
commit | f49a08317b9c2fffcb333b9a40f877d95bb40071 (patch) | |
tree | c9342f33e3d6b85059a24e9cdb20895880fd17dc /lib/intercept/intercept.cpp | |
parent | c8f7022057335e33c6eea565208f4b70fbef4288 (diff) |
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.
Diffstat (limited to 'lib/intercept/intercept.cpp')
-rw-r--r-- | lib/intercept/intercept.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |