From: Wouter Wijngaards Date: Mon, 22 Oct 2007 09:14:29 +0000 (+0000) Subject: ISO C X-Git-Tag: release-0.6~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63aa7463e884f71ee5e6930514fa017fa368cbf5;p=thirdparty%2Funbound.git ISO C git-svn-id: file:///svn/unbound/trunk@712 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index da16371c9..88afbfb3b 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,7 @@ 22 October 2007: Wouter - added donotquerylocalhost config option. Can be turned off for out test cases. + - ISO C compat changes. 19 October 2007: Wouter - added configure (and its files) to svn, so that the trunk is easier diff --git a/util/regional.c b/util/regional.c index 71d76c147..b314c2937 100644 --- a/util/regional.c +++ b/util/regional.c @@ -124,7 +124,7 @@ regional_alloc(struct regional *r, size_t size) r->total_large += ALIGNMENT+size; *(char**)s = r->large_list; r->large_list = (char*)s; - return s+ALIGNMENT; + return (char*)s+ALIGNMENT; } /* create a new chunk */ if(a > r->available) { diff --git a/validator/val_nsec.h b/validator/val_nsec.h index cd2c3c139..68ab91a83 100644 --- a/validator/val_nsec.h +++ b/validator/val_nsec.h @@ -43,10 +43,10 @@ #ifndef VALIDATOR_VAL_NSEC_H #define VALIDATOR_VAL_NSEC_H +#include "util/data/packed_rrset.h" struct val_env; struct module_env; struct ub_packed_rrset_key; -enum sec_status; struct reply_info; struct query_info; struct key_entry_key; diff --git a/validator/val_nsec3.h b/validator/val_nsec3.h index b6f914ef7..bf7069277 100644 --- a/validator/val_nsec3.h +++ b/validator/val_nsec3.h @@ -67,11 +67,11 @@ #ifndef VALIDATOR_VAL_NSEC3_H #define VALIDATOR_VAL_NSEC3_H #include "util/rbtree.h" +#include "util/data/packed_rrset.h" struct val_env; struct regional; struct module_env; struct ub_packed_rrset_key; -enum sec_status; struct reply_info; struct query_info; struct key_entry_key; diff --git a/validator/val_sigcrypt.h b/validator/val_sigcrypt.h index c838897a8..38a5d9e77 100644 --- a/validator/val_sigcrypt.h +++ b/validator/val_sigcrypt.h @@ -43,10 +43,10 @@ #ifndef VALIDATOR_VAL_SIGCRYPT_H #define VALIDATOR_VAL_SIGCRYPT_H +#include "util/data/packed_rrset.h" struct val_env; struct module_env; struct ub_packed_rrset_key; -enum sec_status; struct rbtree_t; struct regional; diff --git a/validator/val_utils.h b/validator/val_utils.h index fc2dd8f7b..415e8fbfd 100644 --- a/validator/val_utils.h +++ b/validator/val_utils.h @@ -41,6 +41,7 @@ #ifndef VALIDATOR_VAL_UTILS_H #define VALIDATOR_VAL_UTILS_H +#include "util/data/packed_rrset.h" struct query_info; struct reply_info; struct val_env; @@ -50,7 +51,6 @@ struct key_entry_key; struct regional; struct val_anchors; struct rrset_cache; -enum sec_status; /** * Response classifications for the validator. The different types of proofs.