From 2e2e1563df892061d06a24b3e221b0983b60936e Mon Sep 17 00:00:00 2001 From: Martin Simmons Date: Wed, 9 Apr 2014 19:17:15 +0200 Subject: [PATCH] Fix Bacula bug #2045 -- multiply defined daemon_event --- bacula/src/stored/bcopy.c | 2 -- bacula/src/stored/bls.c | 2 -- bacula/src/stored/bscan.c | 2 -- bacula/src/stored/btape.c | 2 -- bacula/src/tools/bsmtp.c | 7 ------- bacula/src/tools/dbcheck.c | 6 ------ bacula/src/tools/drivetype.c | 4 ---- bacula/src/tools/fstype.c | 4 ---- bacula/src/tools/testfind.c | 1 - bacula/src/tools/testls.c | 1 - 10 files changed, 31 deletions(-) diff --git a/bacula/src/stored/bcopy.c b/bacula/src/stored/bcopy.c index 5fe76df129..ce1144e1f7 100644 --- a/bacula/src/stored/bcopy.c +++ b/bacula/src/stored/bcopy.c @@ -24,8 +24,6 @@ #include "bacula.h" #include "stored.h" -/* Dummy functions */ -int generate_daemon_event(JCR *jcr, const char *event) { return 1; } extern bool parse_sd_config(CONFIG *config, const char *configfile, int exit_code); /* Forward referenced functions */ diff --git a/bacula/src/stored/bls.c b/bacula/src/stored/bls.c index c7d1957014..ce8e53f822 100644 --- a/bacula/src/stored/bls.c +++ b/bacula/src/stored/bls.c @@ -25,8 +25,6 @@ #include "stored.h" #include "findlib/find.h" -/* Dummy functions */ -int generate_daemon_event(JCR *jcr, const char *event) { return 1; } extern bool parse_sd_config(CONFIG *config, const char *configfile, int exit_code); static void do_blocks(char *infname); diff --git a/bacula/src/stored/bscan.c b/bacula/src/stored/bscan.c index fbfe75a3b7..0a029711bb 100644 --- a/bacula/src/stored/bscan.c +++ b/bacula/src/stored/bscan.c @@ -29,8 +29,6 @@ #include "cats/cats.h" #include "cats/sql_glue.h" -/* Dummy functions */ -int generate_daemon_event(JCR *jcr, const char *event) { return 1; } extern bool parse_sd_config(CONFIG *config, const char *configfile, int exit_code); /* Forward referenced functions */ diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index 2b49fb99a3..3ca97ffcb6 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -34,8 +34,6 @@ #include "vtape_dev.h" #endif -/* Dummy functions */ -int generate_daemon_event(JCR *jcr, const char *event) { return 1; } extern bool parse_sd_config(CONFIG *config, const char *configfile, int exit_code); /* External subroutines */ diff --git a/bacula/src/tools/bsmtp.c b/bacula/src/tools/bsmtp.c index b2274384bd..a3e5eef541 100644 --- a/bacula/src/tools/bsmtp.c +++ b/bacula/src/tools/bsmtp.c @@ -60,13 +60,6 @@ #include #endif -/* - * Dummy functions - */ -int generate_daemon_event(JCR *jcr, const char *event) -{ - return 1; -} #ifndef MAXSTRING #define MAXSTRING 254 diff --git a/bacula/src/tools/dbcheck.c b/bacula/src/tools/dbcheck.c index 069d07aeef..60f330155c 100644 --- a/bacula/src/tools/dbcheck.c +++ b/bacula/src/tools/dbcheck.c @@ -30,12 +30,6 @@ extern bool parse_dir_config(CONFIG *config, const char *configfile, int exit_code); -/* - * Dummy functions - */ -int generate_daemon_event(JCR *jcr, const char *event) - { return 1; } - typedef struct s_id_ctx { int64_t *Id; /* ids to be modified */ int num_ids; /* ids stored */ diff --git a/bacula/src/tools/drivetype.c b/bacula/src/tools/drivetype.c index 23cb42dce9..3112e37844 100644 --- a/bacula/src/tools/drivetype.c +++ b/bacula/src/tools/drivetype.c @@ -25,10 +25,6 @@ #include "bacula.h" #include "findlib/find.h" -/* Dummy functions */ -int generate_daemon_event(JCR *jcr, const char *event) - { return 1; } - static void usage() { fprintf(stderr, _( diff --git a/bacula/src/tools/fstype.c b/bacula/src/tools/fstype.c index 2335a20a84..3e2e3150a6 100644 --- a/bacula/src/tools/fstype.c +++ b/bacula/src/tools/fstype.c @@ -26,10 +26,6 @@ #include "findlib/find.h" #include "lib/mntent_cache.h" -/* Dummy functions */ -int generate_daemon_event(JCR *jcr, const char *event) - { return 1; } - static void usage() { fprintf(stderr, _( diff --git a/bacula/src/tools/testfind.c b/bacula/src/tools/testfind.c index 71bc7a7b0d..d19a82a852 100644 --- a/bacula/src/tools/testfind.c +++ b/bacula/src/tools/testfind.c @@ -31,7 +31,6 @@ #endif /* Dummy functions */ -int generate_daemon_event(JCR *jcr, const char *event) { return 1; } int generate_job_event(JCR *jcr, const char *event) { return 1; } void generate_plugin_event(JCR *jcr, bEventType eventType, void *value) { } extern bool parse_dir_config(CONFIG *config, const char *configfile, int exit_code); diff --git a/bacula/src/tools/testls.c b/bacula/src/tools/testls.c index 6cedf40bc8..ebf1bb3adc 100644 --- a/bacula/src/tools/testls.c +++ b/bacula/src/tools/testls.c @@ -26,7 +26,6 @@ #include "findlib/find.h" /* Dummy functions */ -int generate_daemon_event(JCR *jcr, const char *event) { return 1; } int generate_job_event(JCR *jcr, const char *event) { return 1; } void generate_plugin_event(JCR *jcr, bEventType eventType, void *value) { } -- 2.39.5