From 469cddb515d3ba2e47e074992860d4b86b425bd7 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Thu, 11 Apr 2019 14:59:39 -0300 Subject: [PATCH] Example quickfix --- examples/iterators/hashset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/iterators/hashset.c b/examples/iterators/hashset.c index 2e150d6..0c841cd 100644 --- a/examples/iterators/hashset.c +++ b/examples/iterators/hashset.c @@ -11,7 +11,7 @@ #include #include "hashset.h" -HASHSET_GENERATE(hs, hash_set, static, int) +HASHSET_GENERATE(hs, hset, static, int) size_t inthash(int t) { @@ -36,12 +36,12 @@ int main(int argc, char const *argv[]) int r; // Initialize hash set and add some elements - hash_set *hs = hs_new(10, 0.9, intcmp, inthash); + hset *hs = hs_new(10, 0.9, intcmp, inthash); for (int i = 0; i < 10; i++) hs_insert(hs, i); // Initialize iterator - hash_set_iter iter; + hset_iter iter; hs_iter_new(&iter, hs); // Make the iterator go back and forward