switch_dso.c: FreeBSD(8.0) dlerror() returns const char*, add cast to char* to avoid a warning (and abort due to -Werror)
This commit is contained in:
parent
72ec7b59ab
commit
32cedb2df9
|
@ -131,7 +131,7 @@ void *switch_dso_data_sym(switch_dso_lib_t lib, const char *sym, char **err)
|
|||
dlerror();
|
||||
|
||||
if (!(addr = dlsym(lib, sym))) {
|
||||
err_str = dlerror();
|
||||
err_str = (char *)dlerror();
|
||||
}
|
||||
|
||||
if (err_str) {
|
||||
|
|
Loading…
Reference in New Issue