[pulseaudio-commits] r2352 - /branches/glitch-free/src/pulsecore/ltdl-helper.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri May 2 18:30:42 PDT 2008


Author: lennart
Date: Sat May  3 03:30:40 2008
New Revision: 2352

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2352&root=pulseaudio&view=rev
Log:
don't require a module name when resolving a dl symbol

Modified:
    branches/glitch-free/src/pulsecore/ltdl-helper.c

Modified: branches/glitch-free/src/pulsecore/ltdl-helper.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/ltdl-helper.c?rev=2352&root=pulseaudio&r1=2351&r2=2352&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/ltdl-helper.c (original)
+++ branches/glitch-free/src/pulsecore/ltdl-helper.c Sat May  3 03:30:40 2008
@@ -42,11 +42,13 @@
     pa_void_func_t f;
 
     pa_assert(handle);
-    pa_assert(module);
     pa_assert(symbol);
 
-    if ((f = ((pa_void_func_t) (long) lt_dlsym(handle, symbol))))
+    if ((f = ((pa_void_func_t) (size_t) lt_dlsym(handle, symbol))))
         return f;
+
+    if (!module)
+        return NULL;
 
     /* As the .la files might have been cleansed from the system, we should
      * try with the ltdl prefix as well. */
@@ -57,7 +59,7 @@
         if (!isalnum(*c))
             *c = '_';
 
-    f = (pa_void_func_t) (long) lt_dlsym(handle, sn);
+    f = (pa_void_func_t) (size_t) lt_dlsym(handle, sn);
     pa_xfree(sn);
 
     return f;




More information about the pulseaudio-commits mailing list