From aa17f05b81357cb3c63bee30b361c682ab12205e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 26 Oct 2015 16:16:25 -0400 Subject: dlfcn: dlerror requires a global lock anyway --- src/dl/dlsym_reserved.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dl/dlsym_reserved.go') diff --git a/src/dl/dlsym_reserved.go b/src/dl/dlsym_reserved.go index cfa0dca..081e012 100644 --- a/src/dl/dlsym_reserved.go +++ b/src/dl/dlsym_reserved.go @@ -44,7 +44,7 @@ var ( // the executable and its dependencies, as well as symbols in // shared objects that were dynamically loaded with the // RTLD_GLOBAL flag. - RTLD_DEFAULT *Handle + RTLD_DEFAULT Handle // This Handle represents the shared object search order after // the current object. This allows one to provide a wrapper @@ -54,10 +54,10 @@ var ( // "real" function provided in another shared object (or for // that matter, the "next" definition of the function in cases // where there are multiple layers of preloading). - RTLD_NEXT *Handle + RTLD_NEXT Handle ) func init() { - RTLD_DEFAULT = &Handle{c: unsafe.Pointer(uintptr(C.rtld_default)), o: 2} - RTLD_DEFAULT = &Handle{c: unsafe.Pointer(uintptr(C.rtld_next)), o: 2} + RTLD_DEFAULT = Handle{c: unsafe.Pointer(uintptr(C.rtld_default)), o: 2} + RTLD_DEFAULT = Handle{c: unsafe.Pointer(uintptr(C.rtld_next)), o: 2} } -- cgit v1.2.3-54-g00ecf