]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/label.c
change all void *jcr into JCR *jcr
[bacula/bacula] / bacula / src / stored / label.c
index a99b9188e1083366b151cfd9222d485cf08feaa8..086acff086703ab8743847ed88f3e0ff1e1515c0 100644 (file)
@@ -74,8 +74,7 @@ int read_dev_volume_label(JCR *jcr, DEVICE *dev, DEV_BLOCK *block)
          * Cancel Job if too many label errors
          *  => we are in a loop
          */
-        if (jcr->label_errors > 100) {
-           set_jcr_job_status(jcr, JS_ErrorTerminated);
+        if (jcr->label_errors++ > 100) {
             Jmsg(jcr, M_FATAL, 0, "%s", jcr->errmsg);
         }
         return jcr->label_status = VOL_NAME_ERROR;
@@ -141,8 +140,7 @@ because:\n   %s"), dev_name(dev), strerror_dev(dev));
        * Cancel Job if too many label errors
        *  => we are in a loop
        */
-      if (jcr->label_errors > 100) {
-        set_jcr_job_status(jcr, JS_ErrorTerminated);
+      if (jcr->label_errors++ > 100) {
          Jmsg(jcr, M_FATAL, 0, "%s", jcr->errmsg);
       }
       return jcr->label_status = VOL_NAME_ERROR;