added TESTSUITE mode
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 23 Oct 2005 22:49:45 +0000 (22:49 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 23 Oct 2005 22:49:45 +0000 (22:49 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2172 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vhashify.c

index a4cfdf8..6b0bf1a 100644 (file)
@@ -269,6 +269,7 @@ convertDigest(HashPath d_path)
   return true;
 }
 
+#ifndef ENSC_TESTSUITE
 static bool
 addStatHash(hashFunctionContext *h_ctx, struct stat const * const st)
 {
@@ -293,7 +294,14 @@ addStatHash(hashFunctionContext *h_ctx, struct stat const * const st)
 
   return hashFunctionContextUpdate(h_ctx, (void *)&tmp, sizeof tmp)!=-1;
 }
-
+#else
+static bool
+addStatHash(hashFunctionContext *h_ctx, struct stat const * const st)
+{
+  return true;
+}
+#endif
+  
 static bool
 calculateHashFromFD(int fd, HashPath d_path, struct stat const * const st)
 {