]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Remove unused berrno call + return
authorKern Sibbald <kern@sibbald.com>
Sat, 19 Jan 2019 14:53:18 +0000 (15:53 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 19 Jan 2019 14:53:18 +0000 (15:53 +0100)
bacula/src/dird/dird.c

index f06be79ebf1ad358ad6e833d27cd43ec9e0ff217..2b31c2ba92c2633c9cedfadeeb91e888d6b4125a 100644 (file)
@@ -1459,7 +1459,6 @@ static void cleanup_old_files()
    char prbuf[500];
    const int nmatch = 30;
    regmatch_t pmatch[nmatch];
-   berrno be;
 
    /* Exclude spaces and look for .mail, .tmp or .restore.xx.bsr files */
    const char *pat1 = "^[^ ]+\\.(restore\\.[^ ]+\\.bsr|mail|tmp)$";
@@ -1489,7 +1488,6 @@ static void cleanup_old_files()
       Pmsg2(000, "Failed to open working dir %s for cleanup: ERR=%s\n",
             director->working_directory, be.bstrerror());
       goto get_out1;
-      return;
    }
 
    while (1) {