mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-28 02:29:51 -05:00
lint, optimize fix.
git-svn-id: file:///svn/unbound/trunk@846 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
2b08436c4c
commit
7f8b84d0e5
2 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
- configure --enable-debug is needed for dependency generation
|
||||
for assertions and for compiler warnings.
|
||||
- ldns.tgz updated with ldns-trunk (where buffer.h is updated).
|
||||
- fix lint, unit test in optimize mode.
|
||||
|
||||
11 January 2008: Wouter
|
||||
- man page, warning removed.
|
||||
|
|
|
|||
|
|
@ -45,7 +45,11 @@
|
|||
/** number of tests done */
|
||||
extern int testcount;
|
||||
/** test bool x, exits on failure, increases testcount. */
|
||||
#ifdef DEBUG_UNBOUND
|
||||
#define unit_assert(x) do {testcount++; log_assert(x);} while(0)
|
||||
#else
|
||||
#define unit_assert(x) do {testcount++; if(!(x)) { fprintf(stderr, "assertion failure %s:%d\n", __FILE__, __LINE__); exit(1);}} while(0)
|
||||
#endif
|
||||
|
||||
/** unit test lruhashtable implementation */
|
||||
void lruhash_test();
|
||||
|
|
|
|||
Loading…
Reference in a new issue