diff options
author | des <des@FreeBSD.org> | 2013-09-15 00:36:18 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-09-15 00:36:18 +0000 |
commit | a4b7c5a2b891b1626cbc7f0dd45a198e1f5f037f (patch) | |
tree | db350d281e6140731c10d0c9e2991b25cb238d39 /contrib/unbound/daemon/cachedump.c | |
parent | aafb05a3bcadf34af0465fcf05f3fc918053ed4f (diff) | |
download | FreeBSD-src-a4b7c5a2b891b1626cbc7f0dd45a198e1f5f037f.zip FreeBSD-src-a4b7c5a2b891b1626cbc7f0dd45a198e1f5f037f.tar.gz |
Numerous fixes to make Unbound compile cleanly:
- cast through void * to silence alignment warnings (presumably false
positives resulting from poor API design)
- constify a few function arguments
- move prototypes for callbacks into a common header
- now that the prototypes are in scope, fix instances of function
definitions that don't match the prototype or what the caller
actually passes
- hide a conditionally unused global variable behind the same #ifdef
that controls its use
Approved by: re (blanket)
Diffstat (limited to 'contrib/unbound/daemon/cachedump.c')
-rw-r--r-- | contrib/unbound/daemon/cachedump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/unbound/daemon/cachedump.c b/contrib/unbound/daemon/cachedump.c index 46c625f..9d941d7 100644 --- a/contrib/unbound/daemon/cachedump.c +++ b/contrib/unbound/daemon/cachedump.c @@ -299,7 +299,7 @@ copy_msg(struct regional* region, struct lruhash_entry* e, sizeof(struct ub_packed_rrset_key*) * rep->rrset_count); if(!*d) return 0; - (*d)->rrsets = (struct ub_packed_rrset_key**)( + (*d)->rrsets = (struct ub_packed_rrset_key**)(void *)( (uint8_t*)(&((*d)->ref[0])) + sizeof(struct rrset_ref) * rep->rrset_count); *k = (struct query_info*)regional_alloc_init(region, |