From 9cd60f1a4fd81a5e519b6963db6bc1d78d1228d2 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sun, 29 Jan 2012 17:52:06 +0100 Subject: [PATCH] Tweak no need to initialize the loop var. --- bacula/src/dird/dir_plugins.c | 6 +++--- bacula/src/stored/sd_plugins.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bacula/src/dird/dir_plugins.c b/bacula/src/dird/dir_plugins.c index 73b14d3a38..b0b29ab7d6 100644 --- a/bacula/src/dird/dir_plugins.c +++ b/bacula/src/dird/dir_plugins.c @@ -101,7 +101,7 @@ int generate_plugin_event(JCR *jcr, bDirEventType eventType, void *value) bpContext *plugin_ctx; bDirEvent event; Plugin *plugin; - int i = 0; + int i; bRC rc = bRC_OK; if (!bplugin_list || !jcr || !jcr->plugin_ctx_list) { @@ -238,7 +238,7 @@ static bool is_plugin_compatible(Plugin *plugin) void new_plugins(JCR *jcr) { Plugin *plugin; - int i = 0; + int i; Dmsg0(dbglvl, "=== enter new_plugins ===\n"); if (!bplugin_list) { @@ -279,7 +279,7 @@ void new_plugins(JCR *jcr) void free_plugins(JCR *jcr) { Plugin *plugin; - int i = 0; + int i; if (!bplugin_list || !jcr->plugin_ctx_list) { return; diff --git a/bacula/src/stored/sd_plugins.c b/bacula/src/stored/sd_plugins.c index 2ed955c857..8ea73af96e 100644 --- a/bacula/src/stored/sd_plugins.c +++ b/bacula/src/stored/sd_plugins.c @@ -104,7 +104,7 @@ int generate_plugin_event(JCR *jcr, bsdEventType eventType, void *value) bpContext *plugin_ctx; bsdEvent event; Plugin *plugin; - int i = 0; + int i; bRC rc = bRC_OK; if (!bplugin_list) { @@ -251,7 +251,7 @@ static bool is_plugin_compatible(Plugin *plugin) void new_plugins(JCR *jcr) { Plugin *plugin; - int i = 0; + int i; Dmsg0(dbglvl, "=== enter new_plugins ===\n"); if (!bplugin_list) { @@ -298,7 +298,7 @@ void new_plugins(JCR *jcr) void free_plugins(JCR *jcr) { Plugin *plugin; - int i = 0; + int i; if (!bplugin_list || !jcr->plugin_ctx_list) { return; -- 2.39.5