X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fhash.h;h=1a6ce32fd95e70a16d4fdfd19bdad81018340546;hb=2c6b2d70e6640f39563ad7bb0aa0ba87f883848c;hp=a5ae2e9d42d037225a14918b48e6c1ce3df286f3;hpb=5822f817aa802c2c5a83e9d99a8ae78cb822799b;p=tinc diff --git a/src/hash.h b/src/hash.h index a5ae2e9d..1a6ce32f 100644 --- a/src/hash.h +++ b/src/hash.h @@ -20,14 +20,16 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "system.h" + typedef struct hash_t { size_t n; size_t size; - char *keys; + uint8_t *keys; const void **values; } hash_t; -extern hash_t *hash_alloc(size_t n, size_t size) __attribute__ ((__malloc__)); +extern hash_t *hash_alloc(size_t n, size_t size) __attribute__((__malloc__)); extern void hash_free(hash_t *); extern void hash_insert(hash_t *, const void *key, const void *value);