Skip to content

Commit

Permalink
Cleanup plugins now we use fd_common.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent f25e688 commit 4f4cc26
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
9 changes: 1 addition & 8 deletions src/plugins/filed/bpipe-fd.c
Expand Up @@ -27,13 +27,6 @@
#include "fd_plugins.h"
#include "fd_common.h"

#undef malloc
#undef free
#undef strdup

#define fi __FILE__
#define li __LINE__

static const int dbglvl = 150;

#define PLUGIN_LICENSE "Bareos AGPLv3"
Expand Down Expand Up @@ -238,7 +231,7 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent *event, void *value)
char *p;

Dmsg(ctx, dbglvl, "bpipe-fd: pluginEvent cmd=%s\n", (char *)value);
p_ctx->cmd = strdup((char *)value);
p_ctx->cmd = bstrdup((char *)value);
p = strchr(p_ctx->cmd, ':');
if (!p) {
Jmsg(ctx, M_FATAL, "Plugin terminator not found: %s\n", (char *)value);
Expand Down
4 changes: 0 additions & 4 deletions src/plugins/filed/test-deltaseq-fd.c
Expand Up @@ -27,10 +27,6 @@
#include "fd_plugins.h"
#include "fd_common.h"

#undef malloc
#undef free
#undef strdup

static const int dbglvl = 0;

#define PLUGIN_LICENSE "Bareos AGPLv3"
Expand Down
9 changes: 1 addition & 8 deletions src/plugins/filed/test-plugin-fd.c
Expand Up @@ -30,13 +30,6 @@
#include "lib/ini.h"
#include <wchar.h>

#undef malloc
#undef free
#undef strdup

#define fi __FILE__
#define li __LINE__

static const int dbglvl = 000;

#define PLUGIN_LICENSE "Bareos AGPLv3"
Expand Down Expand Up @@ -301,7 +294,7 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent *event, void *value)
char *p;

Dmsg(ctx, dbglvl, "test-plugin-fd: pluginEvent cmd=%s\n", (char *)value);
p_ctx->cmd = strdup((char *)value);
p_ctx->cmd = bstrdup((char *)value);
p = strchr(p_ctx->cmd, ':');
if (!p) {
Jmsg(ctx, M_FATAL, "Plugin terminator not found: %s\n", (char *)value);
Expand Down

0 comments on commit 4f4cc26

Please sign in to comment.