projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assign more suitable types and fix narrowing conversion warns.
[tinc]
/
src
/
hash.h
diff --git
a/src/hash.h
b/src/hash.h
index
a5ae2e9
..
1a6ce32
100644
(file)
--- a/
src/hash.h
+++ b/
src/hash.h
@@
-20,14
+20,16
@@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "system.h"
+
typedef struct hash_t {
size_t n;
size_t size;
typedef struct hash_t {
size_t n;
size_t size;
-
char
*keys;
+
uint8_t
*keys;
const void **values;
} hash_t;
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);
extern void hash_free(hash_t *);
extern void hash_insert(hash_t *, const void *key, const void *value);