diff options
| author | 2020-02-18 18:11:27 +0000 | |
|---|---|---|
| committer | 2020-02-18 18:11:27 +0000 | |
| commit | 8b5538545d486ecceb041780b03e8ef5e76cedd6 (patch) | |
| tree | 97ecca45f41f25f5899a36b8e5e57742e8985ed8 /usr.bin/dig/lib/isc/hash.c | |
| parent | Remove unused task, taskmgr, app, socket and socketmgr methods. (diff) | |
| download | wireguard-openbsd-8b5538545d486ecceb041780b03e8ef5e76cedd6.tar.xz wireguard-openbsd-8b5538545d486ecceb041780b03e8ef5e76cedd6.zip | |
Get rid of ISC_MAGIC and ISC_MAGIC_VALID macros.
While pulling on that it turns out we can / need git rid of a isc_task
-> isc__task, isc_taskmgr -> isc__taskmgr, isc_timer -> isc__timer and
isc_socket -> isc__socket indirection.
OK millert
Diffstat (limited to 'usr.bin/dig/lib/isc/hash.c')
| -rw-r--r-- | usr.bin/dig/lib/isc/hash.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/dig/lib/isc/hash.c b/usr.bin/dig/lib/isc/hash.c index 8e848f08ca6..befa9110003 100644 --- a/usr.bin/dig/lib/isc/hash.c +++ b/usr.bin/dig/lib/isc/hash.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: hash.c,v 1.2 2020/02/17 18:58:39 jung Exp $ */ +/* $Id: hash.c,v 1.3 2020/02/18 18:11:27 florian Exp $ */ /*! \file * Some portion of this code was derived from universal hash function @@ -59,14 +59,10 @@ if advised of the possibility of such damage. #include <stdlib.h> #include <isc/hash.h> -#include <isc/magic.h> #include <isc/refcount.h> #include <string.h> #include <isc/util.h> -#define HASH_MAGIC ISC_MAGIC('H', 'a', 's', 'h') -#define VALID_HASH(h) ISC_MAGIC_VALID((h), HASH_MAGIC) - /*% * A large 32-bit prime number that specifies the range of the hash output. */ @@ -83,7 +79,6 @@ typedef uint16_t hash_random_t; /*% isc hash structure */ struct isc_hash { - unsigned int magic; isc_boolean_t initialized; isc_refcount_t refcnt; size_t limit; /*%< upper limit of key length */ |
