]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix barcode test, eliminate BOOL (doesn't exist on Linux).
authorKern Sibbald <kern@sibbald.com>
Tue, 25 Apr 2006 19:34:14 +0000 (19:34 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 25 Apr 2006 19:34:14 +0000 (19:34 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2970 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kes-1.39
bacula/src/dird/ua_label.c
bacula/src/filed/job.c

index 6cad2a8e121932c7434ca0463cd6227635e5c084..9b7b094c830eddb8227bc3449623ed0325e83ab4 100644 (file)
@@ -3,6 +3,7 @@
 
 General:
 25Apr06
+- Fix barcode test, eliminate BOOL (doesn't exist on Linux).
 - Write first cut of README.mingw32
 - Add back ua_label barcode fix from Rufolf Cejka.
 - Integrate the majority of the Mingw cross-tools submission
index d2bee65878f7bd9a0caba8728b2addfd4289b917..e629a6f124aa80fb9e40de09d7a9c8f100304fd2 100644 (file)
@@ -307,7 +307,7 @@ static int do_label(UAContext *ua, const char *cmd, int relabel)
    /* Look for one of the barcode keywords */
    if (!relabel && (i=find_arg_keyword(ua, barcode_keyword)) >= 0) {
       /* Now find the keyword in the list */
-      if ((j = find_arg(ua, barcode_keyword[i]))) {
+      if ((j = find_arg(ua, barcode_keyword[i])) > 0) {
          *ua->argk[j] = 0;      /* zap barcode keyword */
       }
       label_barcodes = true;
index 4e6d9b3fdae40013b903b9bb9f388a9fecce6ea0..fd29d9a1d9181d22b404b7f05376514a152daad9 100644 (file)
@@ -1190,12 +1190,12 @@ static int backup_cmd(JCR *jcr)
    int SDJobStatus;
    char ed1[50], ed2[50];
 
+#ifdef WIN32_VSS
    // capture state here, if client is backed up by multiple directors
    // and one enables vss and the other does not then enable_vss can change
    // between here and where its evaluated after the job completes.
-   BOOL bDoVSS = FALSE;
+   bool bDoVSS = false;
 
-#ifdef WIN32_VSS
    bDoVSS = g_pVSSClient && enable_vss;
    if (bDoVSS)
       /* Run only one at a time */