From 32cedb2df90e77b91bd17699cc42099fdfdfdb97 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Sat, 24 Apr 2010 11:18:49 +0200 Subject: [PATCH] switch_dso.c: FreeBSD(8.0) dlerror() returns const char*, add cast to char* to avoid a warning (and abort due to -Werror) --- src/switch_dso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_dso.c b/src/switch_dso.c index 152c280d5d..fd21653063 100644 --- a/src/switch_dso.c +++ b/src/switch_dso.c @@ -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) {