From: Enrico Scholz Date: Sat, 29 Oct 2005 09:25:42 +0000 (+0000) Subject: cleanups; undefine macros after their use, set some UNUSED attributes X-Git-Tag: version_0_30_210~76 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae20a563f699dc01ae9ce5c16705b76f65033d3;p=util-vserver.git 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 --- 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; }