aboutsummaryrefslogtreecommitdiffstats
path: root/cm-demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cm-demo.c')
-rw-r--r--cm-demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cm-demo.c b/cm-demo.c
index 0e9f82d..cdcf7bb 100644
--- a/cm-demo.c
+++ b/cm-demo.c
@@ -49,7 +49,7 @@ void default_dealloc(cm_u8* ptr, cm_u8* user) {
int main(void) {
// Create a map: string -> int (word frequency counter)
struct cheesemap map;
- cm_new_(&map, const char*, int, NULL, hash_string, compare_string,
+ cm_init_(&map, const char*, int, NULL, hash_string, compare_string,
default_alloc, default_dealloc);
// Count word frequencies