From d02201ec74d5d6f54bf1980317be45e1e5aef21c Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 17 Apr 2019 20:03:44 -0700 Subject: Just use a single mapkey function --- map.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'map.c') diff --git a/map.c b/map.c index 736233b..c0f9b22 100644 --- a/map.c +++ b/map.c @@ -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) { -- cgit v1.2.3