]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix picky compiler warnings
authorKern Sibbald <kern@sibbald.com>
Thu, 30 Oct 2008 12:06:26 +0000 (12:06 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 30 Oct 2008 12:06:26 +0000 (12:06 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7949 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/filed/backup.c
bacula/src/lib/base64.c
bacula/src/stored/status.c

index 7cdb2c80586fbe32e1923eaf5ee6c4230cf63302..802282f187196cf58e9c18a7aa8626937ae8e62c 100644 (file)
@@ -769,8 +769,8 @@ int send_data(JCR *jcr, int stream, FF_PKT *ff_pkt, DIGEST *digest,
       if (ff_pkt->flags & FO_SPARSE) {
          ser_declare;
          bool haveBlock = true;
-         if (sd->msglen == rsize &&
-             fileAddr+sd->msglen < (uint64_t)ff_pkt->statp.st_size ||
+         if ((sd->msglen == rsize &&
+              fileAddr+sd->msglen < (uint64_t)ff_pkt->statp.st_size) ||
              ((ff_pkt->type == FT_RAW || ff_pkt->type == FT_FIFO) &&
                (uint64_t)ff_pkt->statp.st_size == 0)) {
             haveBlock = !is_buf_zero(rbuf, rsize);
index 0f69ca7e2c3019fbd1bdbaf240cb409533ef6b79..87ab2c327d75e6425f8a0f64674d66269d12f613 100644 (file)
@@ -20,7 +20,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   Bacula® is a registered trademark of John Walker.
+   Bacula® is a registered trademark of Kern Sibbald.
    The licensor of Bacula is the Free Software Foundation Europe
    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
    Switzerland, email:ftf@fsfeurope.org.
@@ -177,7 +177,7 @@ bin_to_base64(char *buf, int buflen, char *bin, int binlen, int compatible)
    if (rem && j < buflen) {
       mask = (1 << rem) - 1;
       if (compatible) {
-         buf[j++] = base64_digits[(reg & mask) << 6 - rem];
+         buf[j++] = base64_digits[(reg & mask) << (6 - rem)];
       } else {
          buf[j++] = base64_digits[reg & mask];
       }
index d50bc19e052cbd7f7bb8f10e6b6e761904af0ef2..3dc02b0e7d82c6bc71d3ac0ef3c80b9f38730d84 100644 (file)
@@ -378,7 +378,7 @@ static void list_running_jobs(void sendit(const char *msg, int len, void *sarg),
       }
       dcr = jcr->dcr;
       rdcr = jcr->read_dcr;
-      if ((dcr && dcr->device) || rdcr && rdcr->device) {
+      if ((dcr && dcr->device) || (rdcr && rdcr->device)) {
          bstrncpy(JobName, jcr->Job, sizeof(JobName));
          /* There are three periods after the Job name */
          char *p;