Bugzilla – Bug 408
Comment-out unused hash-related code
Last modified: 2018-08-27 15:28:11 CEST
Created attachment 185 [details]
Exclude unused code from compilation
In lookup3.c there are 3 functions that are compiled but not used anywhere in unbound. This patch excludes them from compilation.
hashbig() - not used in any context
hashword2() - only used in stand-alone compilation of file for self-test
hashlittle2() - only used in stand-alone compilation of file for self-test
This patch comments-out hashbig() entirely and #ifdef's the other 2 functions to the existing SELF_TEST definition.
Thank you for the patch. Applied to svn trunk r2494.
Best regards, Wouter
skywestonline register new account