From f9c6035f032b00584708efeffda40a6ceec8a383 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Wed, 8 Jul 2020 11:18:50 -0400 Subject: Fix rename map_reset_key to map_set_key --- collections/map/map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'collections/map/map.c') diff --git a/collections/map/map.c b/collections/map/map.c index 62cb016..00f2225 100644 --- a/collections/map/map.c +++ b/collections/map/map.c @@ -102,7 +102,7 @@ void *key, *val; return -1; } -void* map_reset_key(root, key) +void* map_set_key(root, key) map *root; void *key; { @@ -115,10 +115,10 @@ void *key; cmp = root->cmp(root->key, key); if (cmp < 0) - return map_reset_key(root->left, key); + return map_set_key(root->left, key); if (cmp > 0) - return map_reset_key(root->right, key); + return map_set_key(root->right, key); tmp = root->key; root->key = key; -- cgit v1.1