From 78270a4b7e72d2d78e7f209fbfe6f252fbee7bfd Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 23 Jan 2012 18:25:23 +0100 Subject: [PATCH] Tweak fix compile error on older FreeBSDs --- bacula/src/lib/plugins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), -- 2.39.5