diff options
author | Thomas Voss <mail@thomasvoss.com> | 2022-12-31 03:34:21 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2022-12-31 03:34:21 +0100 |
commit | 9325ee9ae425d79c3c8d35fd706cdde03c0555c2 (patch) | |
tree | f5481d5a8e523d68ca35ba18ecd15ba24a9ca16c /examples/gehashmap.c | |
parent | 07ecd4334f196e00eb64d7f9fa2e60a653ed696f (diff) |
Sorta refactor
Diffstat (limited to 'examples/gehashmap.c')
-rw-r--r-- | examples/gehashmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/gehashmap.c b/examples/gehashmap.c index d84f363..a29ef14 100644 --- a/examples/gehashmap.c +++ b/examples/gehashmap.c @@ -58,8 +58,8 @@ main(void) atoimap_t *map_a; itoumap_t *map_b; - atoimap_new(map_a = malloc(sizeof(atoimap_t))); - itoumap_new(map_b = malloc(sizeof(itoumap_t))); + atoimap_new(map_a = malloc(sizeof(atoimap_t)), 0, 0); + itoumap_new(map_b = malloc(sizeof(itoumap_t)), 0, 0); atoimap_set(map_a, "Thomas Voß", 5); atoimap_set(map_a, "THOMAS VOẞ", 6); @@ -96,7 +96,7 @@ main(void) atoimap_free(map_a); itoumap_free(map_b); - atoimap_new(map_a); + atoimap_new(map_a, 0, 0); atoimap_set(map_a, strdup("Thomas Voß"), 5); atoimap_set(map_a, strdup("THOMAS VOẞ"), 6); atoimap_set(map_a, strdup("Thomas Voss"), 7); |