From 8ae20a563f699dc01ae9ce5c16705b76f65033d3 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sat, 29 Oct 2005 09:25:42 +0000 Subject: [PATCH] cleanups; undefine macros after their use, set some UNUSED attributes and 'return EXIT_SUCCESS' in main to make the testsuite happy (where main() is not main()) git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2205 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/vhashify.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 1.8.1.5