aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-13 14:02:59 -0700
committerMichael Forney <mforney@mforney.org>2021-09-13 16:17:04 -0700
commit4e9690b6cb07de9f5a1927ec0b1a8d0c99ddbbe8 (patch)
tree5c1abf5742e83612f04e997bc146dd9312d364ca /util.h
parent32df8722283c6d2f5385870d36db75d514b33a5b (diff)
Make string literal data unsigned char
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.h b/util.h
index 0081667..3a06874 100644
--- a/util.h
+++ b/util.h
@@ -9,7 +9,7 @@ struct array {
struct mapkey {
uint64_t hash;
- const char *str;
+ const void *str;
size_t len;
};
@@ -47,7 +47,7 @@ void *arraylast(struct array *, size_t);
/* map */
-void mapkey(struct mapkey *, const char *, size_t);
+void mapkey(struct mapkey *, const void *, size_t);
struct map *mkmap(size_t);
void delmap(struct map *, void(void *));
void **mapput(struct map *, struct mapkey *);