diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-09 10:44:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-11-09 10:44:02 +0000 |
commit | 933bf3ec3c8ebf6935058ad85ec820931429a3a9 (patch) | |
tree | 42c175c894395632f6c11318a3c988556d9c6c82 /libsandbox | |
parent | libsandbox: fix symbol loading on hardened systems (diff) | |
download | sandbox-933bf3ec3c8ebf6935058ad85ec820931429a3a9.tar.gz sandbox-933bf3ec3c8ebf6935058ad85ec820931429a3a9.tar.bz2 sandbox-933bf3ec3c8ebf6935058ad85ec820931429a3a9.zip |
libsandbox: fixup style/warnings in previous commit
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox')
-rw-r--r-- | libsandbox/wrappers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libsandbox/wrappers.c b/libsandbox/wrappers.c index 72d32f3..c079e3e 100644 --- a/libsandbox/wrappers.c +++ b/libsandbox/wrappers.c @@ -43,14 +43,14 @@ void *get_dlsym(const char *symname, const char *symver) void *symaddr = NULL; #if defined(USE_RTLD_NEXT) - libc_handle = RTLD_NEXT; + libc_handle = RTLD_NEXT; #endif - /* Checking for -1UL is significent on hardened! - * USE_RTLD_NEXT returns it as a sign of being unusable. - * However using !x or NULL checks does NOT pick it up! - */ -#define INVALID_LIBC_HANDLE(x) (!x || NULL == x || -1UL == x) + /* Checking for -1UL is significant on hardened! + * USE_RTLD_NEXT returns it as a sign of being unusable. + * However using !x or NULL checks does NOT pick it up! + */ +#define INVALID_LIBC_HANDLE(x) (!x || NULL == x || (void *)-1UL == x) if (INVALID_LIBC_HANDLE(libc_handle)) { libc_handle = dlopen(LIBC_VERSION, RTLD_LAZY); if (INVALID_LIBC_HANDLE(libc_handle)) { |