]> granicus.if.org Git - sudo/commitdiff
Fix remaining syntax errors.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 12 Oct 2010 01:10:34 +0000 (21:10 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 12 Oct 2010 01:10:34 +0000 (21:10 -0400)
compat/dlopen.c

index 38a53b5f2600e8b500d6a4812f68bb5905faa0ab..29c9b6a8500d4381907da0ff47fd5443352c398e 100644 (file)
@@ -58,11 +58,11 @@ dlopen(const char *path, int mode)
 
     /* We don't support RTLD_GLOBAL or RTLD_LOCAL yet. */
     if (ISSET(mode, RTLD_LAZY))
-       flags |= BIND_DEFERRED
+       flags |= BIND_DEFERRED;
     if (ISSET(mode, RTLD_NOW))
-       flags |= BIND_IMMEDIATE
+       flags |= BIND_IMMEDIATE;
 
-    return (void *)shl_load(path, flags, 0);
+    return (void *)shl_load(path, flags, 0L);
 }
 
 int
@@ -72,9 +72,9 @@ dlclose(void *handle)
 }
 
 void *
-dlsym(void *handle, const char *symbol)
+dlsym(void *vhandle, const char *symbol)
 {
-    shl_t handle;
+    shl_t handle = vhandle;
     void *value = NULL;
 
     (void)shl_findsym(&handle, symbol, TYPE_UNDEFINED, (void *)&value);