X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fvhashify.c;h=5e37887753fee0cfc73382c0e88eaa80bd47d54a;hb=5b39edfee423f5f3cbe8fa223dcfdc9e8d66e286;hp=6b0bf1a331abd83ae6511080758f049f419ff3d9;hpb=e03398aeb5d1a9c1117d2f375f0b95ab82f5143b;p=util-vserver.git diff --git a/util-vserver/src/vhashify.c b/util-vserver/src/vhashify.c index 6b0bf1a..5e37887 100644 --- a/util-vserver/src/vhashify.c +++ b/util-vserver/src/vhashify.c @@ -292,11 +292,15 @@ addStatHash(hashFunctionContext *h_ctx, struct stat const * const st) SET_ATTR(mtime) }; +#undef SET_ATTR +#undef DECL_ATTR + + return hashFunctionContextUpdate(h_ctx, (void *)&tmp, sizeof tmp)!=-1; } #else static bool -addStatHash(hashFunctionContext *h_ctx, struct stat const * const st) +addStatHash(hashFunctionContext UNUSED *h_ctx, struct stat const UNUSED * const st) { return true; } @@ -748,4 +752,6 @@ int main(int argc, char *argv[]) freeHashList(&global_info.hash_dirs); hashFunctionContextFree(&global_info.hash_context); #endif + + return EXIT_SUCCESS; }