]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
metaplugin: Fix compilation warnings.
authorRadosław Korzeniewski <radoslaw@korzeniewski.net>
Fri, 2 Jul 2021 13:27:43 +0000 (15:27 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
bacula/src/plugins/fd/pluginlib/metaplugin.cpp
bacula/src/plugins/fd/pluginlib/test_metaplugin_backend.c

index 0640e995c6169b199bdd77efad9518222accb5ea..bd68a8bf78a0d919bbb68691034f77af768db5a7 100644 (file)
@@ -1169,8 +1169,6 @@ bRC METAPLUGIN::prepare_backend(bpContext *ctx, char type, char *command)
  */
 bRC METAPLUGIN::handlePluginEvent(bpContext *ctx, bEvent *event, void *value)
 {
-   bRC status;
-
    // extract original plugin context, basically it should be `this`
    METAPLUGIN *pctx = (METAPLUGIN *)ctx->pContext;
    // this ensures that handlePluginEvent is thread safe for extracted pContext
index d9aaef2d822f356ff29032749079f2f9959e2761..65a532b42fea80873483f65ce9dd77874a089b3f 100644 (file)
@@ -735,7 +735,7 @@ void perform_backup()
       snprintf(buf, BIGBUFLEN, "RESTOREOBJ:OtherObject%d\n", mypid);
       write_plugin('C', buf);
       const char *r_data = "/* here comes a file data contents */";
-      snprintf(buf, BIGBUFLEN, "RESTOREOBJ_LEN:%u\n", strlen(r_data) + 1);
+      snprintf(buf, BIGBUFLEN, "RESTOREOBJ_LEN:%lu\n", strlen(r_data) + 1);
       write_plugin('C', buf);
       write_plugin('D', r_data);
       signal_eod();