aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-15 01:46:25 -0500
committerMike Frysinger <vapier@gentoo.org>2009-02-15 01:46:25 -0500
commit1d27d86ddfeefd6b6efe38e45740a6835527e7cb (patch)
treeb6153c14e63a4412436912992638c3c5c1f6b8d0 /libsandbox/wrapper-funcs
parentlibsandbox: calculate longest symbol name dynamically (diff)
downloadsandbox-1d27d86ddfeefd6b6efe38e45740a6835527e7cb.tar.gz
sandbox-1d27d86ddfeefd6b6efe38e45740a6835527e7cb.tar.bz2
sandbox-1d27d86ddfeefd6b6efe38e45740a6835527e7cb.zip
libsandbox: convert more code to stdbool to simplify things
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/wrapper-funcs')
-rw-r--r--libsandbox/wrapper-funcs/getcwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsandbox/wrapper-funcs/getcwd.c b/libsandbox/wrapper-funcs/getcwd.c
index 5814f3d..04c1298 100644
--- a/libsandbox/wrapper-funcs/getcwd.c
+++ b/libsandbox/wrapper-funcs/getcwd.c
@@ -21,11 +21,11 @@ char *WRAPPER_NAME(WRAPPER_ARGS_PROTO)
* used by some getcwd() implementations and resolves to the sandbox
* opendir() wrapper, causing infinit recursion and finially crashes.
*/
- sandbox_on = 0;
+ sandbox_on = false;
check_dlsym(WRAPPER_TRUE_NAME, WRAPPER_SYMNAME,
WRAPPER_SYMVER);
result = WRAPPER_TRUE_NAME(buf, size);
- sandbox_on = 1;
+ sandbox_on = true;
return result;
}