summaryrefslogtreecommitdiffstats
path: root/contrib/unbound/libunbound/libworker.h
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.h
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.h')
-rw-r--r--contrib/unbound/libunbound/libworker.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/unbound/libunbound/libworker.h b/contrib/unbound/libunbound/libworker.h
index c3896fc..0c6e75d 100644
--- a/contrib/unbound/libunbound/libworker.h
+++ b/contrib/unbound/libunbound/libworker.h
@@ -41,8 +41,8 @@
* and if in the background continues until exit, if in the foreground
* returns from the procedure when done.
*/
-#ifndef LIBUNBOUND_WORKER_H
-#define LIBUNBOUND_WORKER_H
+#ifndef LIBUNBOUND_LIBWORKER_H
+#define LIBUNBOUND_LIBWORKER_H
#include "util/data/packed_rrset.h"
struct ub_ctx;
struct ub_result;
@@ -167,4 +167,4 @@ void libworker_bg_done_cb(void* arg, int rcode, ldns_buffer* buf,
void libworker_enter_result(struct ub_result* res, ldns_buffer* buf,
struct regional* temp, enum sec_status msg_security);
-#endif /* LIBUNBOUND_WORKER_H */
+#endif /* LIBUNBOUND_LIBWORKER_H */
OpenPOWER on IntegriCloud