]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
switch_dso.c: FreeBSD(8.0) dlerror() returns const char*, add cast to char* to avoid...
authorStefan Knoblich <s.knoblich@axsentis.de>
Sat, 24 Apr 2010 09:18:49 +0000 (11:18 +0200)
committerStefan Knoblich <s.knoblich@axsentis.de>
Sat, 24 Apr 2010 09:18:49 +0000 (11:18 +0200)
src/switch_dso.c

index 152c280d5d04a8a03749179a43fa7bc7ec321844..fd216530634025ac2be5912538b26c24f5c458d9 100644 (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) {