diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2005-12-05 09:54:40 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2005-12-05 09:54:40 +0000 |
commit | 61f81f6fa71f9403e2f7784bf7a1b3924ab030a4 (patch) | |
tree | ceb962e8c4857e4c21b2503e322f878c9327221d /src | |
parent | Add checks for bsd that have dlopen() in libc. (diff) | |
download | sandbox-61f81f6fa71f9403e2f7784bf7a1b3924ab030a4.tar.gz sandbox-61f81f6fa71f9403e2f7784bf7a1b3924ab030a4.tar.bz2 sandbox-61f81f6fa71f9403e2f7784bf7a1b3924ab030a4.zip |
More bsd fixes.
Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/libsandbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsandbox.c b/src/libsandbox.c index af47a25..7e68985 100644 --- a/src/libsandbox.c +++ b/src/libsandbox.c @@ -554,12 +554,12 @@ static int (*true_ ## _name) (const char *, int, ...) = NULL; \ int _name(const char *pathname, int flags, ...) \ { \ va_list ap; \ - mode_t mode = 0; \ + int mode = 0; \ int result = -1; \ \ if (flags & O_CREAT) { \ va_start(ap, flags); \ - mode = va_arg(ap, mode_t); \ + mode = va_arg(ap, int); \ va_end(ap); \ } \ \ @@ -718,12 +718,12 @@ static int (*true_ ## _name) (const char *, int, ...) = NULL; \ int _name(const char *pathname, int flags, ...) \ { \ va_list ap; \ - mode_t mode = 0; \ + int mode = 0; \ int result = -1; \ \ if (flags & O_CREAT) { \ va_start(ap, flags); \ - mode = va_arg(ap, mode_t); \ + mode = va_arg(ap, int); \ va_end(ap); \ } \ \ |