]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Numerous fixes to make Unbound compile cleanly:
authordes <des@FreeBSD.org>
Sun, 15 Sep 2013 00:36:18 +0000 (00:36 +0000)
committerdes <des@FreeBSD.org>
Sun, 15 Sep 2013 00:36:18 +0000 (00:36 +0000)
commita4b7c5a2b891b1626cbc7f0dd45a198e1f5f037f
treedb350d281e6140731c10d0c9e2991b25cb238d39
parentaafb05a3bcadf34af0465fcf05f3fc918053ed4f
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)
contrib/unbound/daemon/cachedump.c
contrib/unbound/daemon/remote.c
contrib/unbound/daemon/remote.h
contrib/unbound/daemon/unbound.c
contrib/unbound/daemon/worker.c
contrib/unbound/daemon/worker.h
contrib/unbound/libunbound/libworker.c
contrib/unbound/libunbound/libworker.h
contrib/unbound/libunbound/worker.h [new file with mode: 0644]