diff options
author | David Timber <mieabby@gmail.com> | 2020-09-17 19:00:28 +0930 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-09-17 19:00:28 +0930 |
commit | e6953dcb47193746a4f4d9fff0193723fadbb3e6 (patch) | |
tree | b6fe802c3faf48ec7e294fa61207b4e9126fc3c1 /src/strmap.h | |
parent | b54ace5cd8a873be804529f7b8221ee62600d17d (diff) |
* Change value types of containers to uintptr_t
* htbt: fix leak in `htbt_main_q_hover()`
* proone-recon: fix parse bug
Diffstat (limited to 'src/strmap.h')
-rw-r--r-- | src/strmap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/strmap.h b/src/strmap.h index 126ebbc..a8b53ac 100644 --- a/src/strmap.h +++ b/src/strmap.h @@ -6,6 +6,7 @@ typedef struct prne_strmap prne_strmap_t; typedef struct prne_strmap_tuple prne_strmap_tuple_t; +typedef uintptr_t prne_strmap_val_t; struct prne_strmap { prne_strmap_tuple_t *tbl; @@ -14,7 +15,7 @@ struct prne_strmap { struct prne_strmap_tuple { const char *key; - void *val; + prne_strmap_val_t val; }; void prne_init_strmap (prne_strmap_t *map); @@ -24,7 +25,7 @@ void prne_strmap_clear (prne_strmap_t *map); const prne_strmap_tuple_t *prne_strmap_insert ( prne_strmap_t *map, const char* key, - void *val); + const prne_strmap_val_t val); void prne_strmap_erase (prne_strmap_t *map, const char* key); const prne_strmap_tuple_t *prne_strmap_lookup ( prne_strmap_t *map, |