aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-17 20:03:44 -0700
committerMichael Forney <mforney@mforney.org>2019-04-17 20:11:06 -0700
commitd02201ec74d5d6f54bf1980317be45e1e5aef21c (patch)
tree3b3af604f747e168f674964ed3a7d90981f5faf2 /map.c
parentf4d1b8acc04c4f2beeffafa8ff1cca0bdfbe71b2 (diff)
Just use a single mapkey function
Diffstat (limited to 'map.c')
-rw-r--r--map.c8
1 files changed, 1 insertions, 7 deletions
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)
{