Bug 408 - Comment-out unused hash-related code
Comment-out unused hash-related code
Status: RESOLVED FIXED
Product: unbound
Classification: Unclassified
Component: server
unspecified
i386 Linux
: P5 trivial
Assigned To: unbound team
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-15 19:56 CEST by Steve Snyder
Modified: 2011-09-16 09:11 CEST (History)
1 user (show)

See Also:


Attachments
Exclude unused code from compilation (1.58 KB, application/octet-stream)
2011-09-15 19:56 CEST, Steve Snyder
Details

Note You need to log in before you can comment on or make changes to this bug.
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