summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/csset_erase.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/csset_erase.c')
-rw-r--r--misc/examples/csset_erase.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/examples/csset_erase.c b/misc/examples/csset_erase.c
index 9fa40682..9c7f5e1a 100644
--- a/misc/examples/csset_erase.c
+++ b/misc/examples/csset_erase.c
@@ -3,9 +3,9 @@
#define i_key int
#include <stc/csset.h>
-int main()
+int main(void)
{
- csset_int set = c_make(csset_int, {30, 20, 80, 40, 60, 90, 10, 70, 50});
+ csset_int set = c_init(csset_int, {30, 20, 80, 40, 60, 90, 10, 70, 50});
c_foreach (k, csset_int, set)
printf(" %d", *k.ref);
@@ -38,4 +38,4 @@ int main()
puts("");
csset_int_drop(&set);
-} \ No newline at end of file
+}