diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-17 20:03:44 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-17 20:11:06 -0700 |
commit | d02201ec74d5d6f54bf1980317be45e1e5aef21c (patch) | |
tree | 3b3af604f747e168f674964ed3a7d90981f5faf2 /map.c | |
parent | f4d1b8acc04c4f2beeffafa8ff1cca0bdfbe71b2 (diff) |
Just use a single mapkey function
Diffstat (limited to 'map.c')
-rw-r--r-- | map.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -25,19 +25,13 @@ hash(const void *ptr, size_t len) } void -mapbufkey(struct mapkey *k, const char *s, size_t n) +mapkey(struct mapkey *k, const char *s, size_t n) { k->str = s; k->len = n; k->hash = hash(s, n); } -void -mapstrkey(struct mapkey *k, const char *s) -{ - mapbufkey(k, s, strlen(s)); -} - struct map * mkmap(size_t cap) { |