]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compilation warning
authorEric Bollengier <eric@baculasystems.com>
Tue, 18 Jan 2022 15:36:22 +0000 (16:36 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
bacula/src/lib/bsys.c
bacula/src/plugins/fd/test-plugin-fd.c

index 477532aa78355c016ab481ef720a27ae6ccb9b86..69e25a9e97b114e3e8c8fb2f28457c5d24af0558 100644 (file)
@@ -1196,7 +1196,6 @@ void gdb_traceback()
    snprintf(syscom, sizeof(syscom), "gdb --batch -n -ex \"thread apply all bt\" %s %d", name_buf, getpid());
    bpipe = open_bpipe(syscom, 0, "r");
    if (bpipe) {
-      bool ok = false;
       char buf[1000];
       while (fgets(buf, sizeof(buf), bpipe->rfd)) {
          Pmsg1(000, "    %s", buf);
index beaf22efdd9630f194f8f386db9d973ccd0fbbe6..c506bbbf514f4f711195c796751c9f329e6d1bc9 100644 (file)
@@ -761,7 +761,7 @@ static bRC startBackupFile(bpContext *ctx, struct save_pkt *sp)
       p_ctx->nb_obj++;
 
       sp->type = FT_REG;
-      sp->fname = "/@size_update_file@";
+      sp->fname = (char *)"/@size_update_file@";
       sp->statp.st_mode = 0640;
       sp->statp.st_ctime = now;
       sp->statp.st_mtime = now;
@@ -777,7 +777,7 @@ static bRC startBackupFile(bpContext *ctx, struct save_pkt *sp)
       p_ctx->nb_obj++;
 
       sp->type = FT_REG;
-      sp->fname = "/@size_update_file@";
+      sp->fname = (char *)"/@size_update_file@";
       sp->stat_update = true;    /* File attributes should be updated */
       sp->statp.st_size = 666;   /* Update size */
       sp->statp.st_mode = 0777;  /* Update perissions */