From: Ondřej Surý Date: Wed, 28 Mar 2018 11:59:57 +0000 (+0200) Subject: Cleanup included headers in hash.c using iwyu X-Git-Tag: v9.13.0~74^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c092eff4aa092fbda0b5a4762206bab21ec770d;p=thirdparty%2Fbind9.git Cleanup included headers in hash.c using iwyu --- diff --git a/lib/isc/hash.c b/lib/isc/hash.c index b7bb41a4576..7c9d1ed19bf 100644 --- a/lib/isc/hash.c +++ b/lib/isc/hash.c @@ -13,17 +13,15 @@ * 32 bit Fowler/Noll/Vo FNV-1a hash code with modification for BIND */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include // IWYU pragma: keep +#include +#include "isc/once.h" +#include "isc/random.h" +#include "isc/util.h" +#include "isc/types.h" +#include "isc/likely.h" +#include "isc/result.h" +#include "isc/hash.h" // IWYU pragma: keep static isc_uint32_t fnv_offset_basis; static isc_once_t fnv_once = ISC_ONCE_INIT; diff --git a/lib/isc/include/isc/hash.h b/lib/isc/include/isc/hash.h index d6b771ffca7..3822bec906c 100644 --- a/lib/isc/include/isc/hash.h +++ b/lib/isc/include/isc/hash.h @@ -12,7 +12,8 @@ #ifndef ISC_HASH_H #define ISC_HASH_H 1 -#include +#include "isc/lang.h" +#include "isc/types.h" /*** *** Functions