From: Kern Sibbald Date: Mon, 23 Jan 2012 17:25:23 +0000 (+0100) Subject: Tweak fix compile error on older FreeBSDs X-Git-Tag: Release-7.0.0~315 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b105363b32a2e9601d798820b9f898a57e9a230c;p=bacula%2Fbacula Tweak fix compile error on older FreeBSDs --- diff --git a/bacula/src/lib/plugins.c b/bacula/src/lib/plugins.c index 59aad3cdc9..0b42f90536 100644 --- a/bacula/src/lib/plugins.c +++ b/bacula/src/lib/plugins.c @@ -159,7 +159,7 @@ bool load_plugins(void *binfo, void *bfuncs, const char *plugin_dir, plugin->file_len = strstr(plugin->file, type) - plugin->file; plugin->pHandle = dlopen(fname.c_str(), RTLD_NOW); if (!plugin->pHandle) { - char *error = dlerror(); + char *error = (char *)dlerror(); Jmsg(NULL, M_ERROR, 0, _("dlopen plugin %s failed: ERR=%s\n"), fname.c_str(), NPRT(error)); Dmsg2(dbglvl, "dlopen plugin %s failed: ERR=%s\n", fname.c_str(),