From: Enrico Scholz Date: Sun, 23 Oct 2005 22:49:45 +0000 (+0000) Subject: added TESTSUITE mode X-Git-Tag: version_0_30_210~109 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e03398aeb5d1a9c1117d2f375f0b95ab82f5143b;p=util-vserver.git added TESTSUITE mode git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2172 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/vhashify.c b/util-vserver/src/vhashify.c index a4cfdf8..6b0bf1a 100644 --- a/util-vserver/src/vhashify.c +++ b/util-vserver/src/vhashify.c @@ -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) {