Bug 408

Summary: Comment-out unused hash-related code
Product: unbound Reporter: Steve Snyder <unbound0915.20.swsnyder>
Component: serverAssignee: unbound team <unbound-team>
Status: RESOLVED FIXED    
Severity: trivial CC: wouter
Priority: P5    
Version: unspecified   
Hardware: i386   
OS: Linux   
Attachments: Exclude unused code from compilation

Description Steve Snyder 2011-09-15 19:56:14 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.
Comment 1 Wouter Wijngaards 2011-09-16 09:11:57 CEST
Hi Steve,

Thank you for the patch.  Applied to svn trunk r2494.

Best regards, Wouter