uwrap: Remove obsolete uwrap_libc_fn().
authorAndreas Schneider <asn@samba.org>
Tue, 17 Dec 2013 12:39:42 +0000 (13:39 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 17 Dec 2013 12:40:15 +0000 (13:40 +0100)
src/uid_wrapper.c

index b5ca170400ed892932e679cf55c2e2e2a66d51b9..2f3d3add2df65772d2b819c620c9870670a6140e 100644 (file)
@@ -385,27 +385,9 @@ static long int libc_vsyscall(long int sysno, va_list va)
 }
 #endif
 
-static void *uwrap_libc_fn(struct uwrap *u, const char *fn_name)
-{
-       void *func;
-
-#ifdef HAVE_APPLE
-       func = dlsym(RTLD_NEXT, fn_name);
-#else
-       if (u->libc.handle == NULL) {
-               return NULL;
-       }
-
-       func = dlsym(u->libc.handle, fn_name);
-#endif
-       if (func == NULL) {
-               printf("Failed to find %s in %s: %s\n",
-                               fn_name, LIBC_NAME, dlerror());
-               exit(-1);
-       }
-
-       return func;
-}
+/*********************************************************
+ * UWRAP ID HANDLING
+ *********************************************************/
 
 static struct uwrap_thread *find_uwrap_id(pthread_t tid)
 {