From bd1dcb34224324177b6b51f546ee758e7dc1d9e2 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 6 Jan 2012 12:47:21 +0100 Subject: [PATCH] Remove unnecessary break and unused variable --- bacula/src/filed/fd_plugins.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 22649d6375..0534747574 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -164,7 +164,6 @@ void generate_plugin_event(JCR *jcr, bEventType eventType, void *value) int len = 0; bool call_if_canceled = false; restore_object_pkt *rop; - bRC rc; if (!bplugin_list || !jcr || !jcr->plugin_ctx_list) { return; /* Return if no plugins loaded */ @@ -240,10 +239,7 @@ void generate_plugin_event(JCR *jcr, bEventType eventType, void *value) if (is_plugin_disabled(plugin_ctx)) { continue; } - rc = plug_func(plugin)->handlePluginEvent(plugin_ctx, &event, value); - if (rc != bRC_OK) { - break; - } + plug_func(plugin)->handlePluginEvent(plugin_ctx, &event, value); } return; } @@ -1008,7 +1004,8 @@ static bool is_plugin_compatible(Plugin *plugin) return false; } if (strcmp(info->plugin_license, "Bacula AGPLv3") != 0 && - strcmp(info->plugin_license, "AGPLv3") != 0) { + strcmp(info->plugin_license, "AGPLv3") != 0 && + strcmp(info->plugin_license, "Bacula Systems(R) SA") != 0) { Jmsg(NULL, M_ERROR, 0, _("Plugin license incompatible. Plugin=%s license=%s\n"), plugin->file, info->plugin_license); Dmsg2(50, "Plugin license incompatible. Plugin=%s license=%s\n", -- 2.39.5