]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix compiler warning + simplify some #ifdefs
authorKern Sibbald <kern@sibbald.com>
Sun, 1 Jun 2014 12:32:50 +0000 (14:32 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 3 Jun 2014 06:39:27 +0000 (08:39 +0200)
bacula/src/filed/job.c

index cbb95d2ba0ee99a266bbb1fac343d8198c00c791..207f02c68f41554bc23d1b5d41753124bb3bcbf6 100644 (file)
 #include "bacula.h"
 #include "filed.h"
 #include "ch.h"
+#ifdef WIN32_VSS
+#include "vss.h"
+static pthread_mutex_t vss_mutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
 
 /* Globals */
 bool win32decomp = false;
 bool no_win32_write_errors = false;
+static int enable_vss = 0;
 static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
 
 /*
@@ -1628,6 +1633,10 @@ static int fileset_cmd(JCR *jcr)
    POOL_MEM buf(PM_MESSAGE);
    BSOCK *dir = jcr->dir_bsock;
    int rtnstat;
+   int vss = 0;
+
+   sscanf(dir->msg, "fileset vss=%d", &vss);
+   enable_vss = vss;
 
    if (!init_fileset(jcr)) {
       return 0;