summaryrefslogtreecommitdiffstats
path: root/contrib/unbound/libunbound/libworker.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2013-09-15 00:36:18 +0000
committerdes <des@FreeBSD.org>2013-09-15 00:36:18 +0000
commita4b7c5a2b891b1626cbc7f0dd45a198e1f5f037f (patch)
treedb350d281e6140731c10d0c9e2991b25cb238d39 /contrib/unbound/libunbound/libworker.c
parentaafb05a3bcadf34af0465fcf05f3fc918053ed4f (diff)
downloadFreeBSD-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/libunbound/libworker.c')
-rw-r--r--contrib/unbound/libunbound/libworker.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/unbound/libunbound/libworker.c b/contrib/unbound/libunbound/libworker.c
index bd61cea..ffc4716 100644
--- a/contrib/unbound/libunbound/libworker.c
+++ b/contrib/unbound/libunbound/libworker.c
@@ -50,11 +50,13 @@
#include "libunbound/libworker.h"
#include "libunbound/context.h"
#include "libunbound/unbound.h"
+#include "libunbound/worker.h"
#include "services/outside_network.h"
#include "services/mesh.h"
#include "services/localzone.h"
#include "services/cache/rrset.h"
#include "services/outbound_list.h"
+#include "util/fptr_wlist.h"
#include "util/module.h"
#include "util/regional.h"
#include "util/random.h"
@@ -862,7 +864,8 @@ struct outbound_entry* worker_send_query(uint8_t* ATTR_UNUSED(qname),
uint16_t ATTR_UNUSED(qclass), uint16_t ATTR_UNUSED(flags),
int ATTR_UNUSED(dnssec), int ATTR_UNUSED(want_dnssec),
struct sockaddr_storage* ATTR_UNUSED(addr),
- socklen_t ATTR_UNUSED(addrlen), struct module_qstate* ATTR_UNUSED(q))
+ socklen_t ATTR_UNUSED(addrlen), uint8_t* ATTR_UNUSED(zone),
+ size_t ATTR_UNUSED(zonelen), struct module_qstate* ATTR_UNUSED(q))
{
log_assert(0);
return 0;
OpenPOWER on IntegriCloud