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:
Stefan Knoblich 2010-04-24 11:18:49 +02:00
parent 72ec7b59ab
commit 32cedb2df9
1 changed files with 1 additions and 1 deletions

View File

@ -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) {