Assign more suitable types and fix narrowing conversion warns.
[tinc] / src / hash.h
index a5ae2e9..1a6ce32 100644 (file)
     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);