Various fixes for build warnings

This commit is contained in:
Maarten Bosmans 2011-03-02 12:41:24 +01:00 committed by Colin Guthrie
parent 53695b83dc
commit 9cbf19b59b
5 changed files with 7 additions and 13 deletions

View file

@ -42,7 +42,7 @@ pa_void_func_t pa_load_sym(lt_dlhandle handle, const char *module, const char *s
pa_assert(handle);
pa_assert(symbol);
*(void**) &f = lt_dlsym(handle, symbol);
f = (pa_void_func_t) lt_dlsym(handle, symbol);
if (f)
return f;
@ -59,7 +59,7 @@ pa_void_func_t pa_load_sym(lt_dlhandle handle, const char *module, const char *s
if (!isalnum(*c))
*c = '_';
*(void**) &f = lt_dlsym(handle, sn);
f = (pa_void_func_t) lt_dlsym(handle, sn);
pa_xfree(sn);
return f;