From: Wouter Wijngaards Date: Fri, 16 Sep 2011 07:09:11 +0000 (+0000) Subject: - fix bug #408: accept patch from Steve Snyder that comments out X-Git-Tag: release-1.4.14rc1~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c30e90b43549b9f4ba02f42442b7eaa1138fb463;p=thirdparty%2Funbound.git - fix bug #408: accept patch from Steve Snyder that comments out unused functions in lookup3.c. git-svn-id: file:///svn/unbound/trunk@2494 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index d29bb4fcf..6e17051e3 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +16 September 2011: Wouter + - fix bug #408: accept patch from Steve Snyder that comments out + unused functions in lookup3.c. + 15 September 2011: Wouter - release 1.4.13. - trunk contains 1.4.14 in development. diff --git a/util/storage/lookup3.c b/util/storage/lookup3.c index 2a25690cf..65e3cc487 100644 --- a/util/storage/lookup3.c +++ b/util/storage/lookup3.c @@ -215,6 +215,8 @@ uint32_t initval) /* the previous hash, or an arbitrary value */ } +#ifdef SELF_TEST + /* -------------------------------------------------------------------- hashword2() -- same as hashword(), but take two seeds and return two @@ -260,6 +262,7 @@ uint32_t *pb) /* IN: more seed OUT: secondary hash value */ *pc=c; *pb=b; } +#endif /* SELF_TEST */ /* ------------------------------------------------------------------------------- @@ -459,6 +462,7 @@ uint32_t hashlittle( const void *key, size_t length, uint32_t initval) return c; } +#ifdef SELF_TEST /* * hashlittle2: return 2 32-bit hash values @@ -646,7 +650,9 @@ void hashlittle2( *pc=c; *pb=b; } +#endif /* SELF_TEST */ +#if 0 /* currently not used */ /* * hashbig(): @@ -778,6 +784,7 @@ uint32_t hashbig( const void *key, size_t length, uint32_t initval) return c; } +#endif /* 0 == currently not used */ #ifdef SELF_TEST