summaryrefslogtreecommitdiff
path: root/test/test_avltree.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-08-14 21:31:17 +0200
committerRichard Braun <rbraun@sceen.net>2018-08-14 21:31:17 +0200
commitde950994b2238c2568602dd2a7ac40e827e3d8c6 (patch)
treede7427774759f70c33fe173abd2ae87742cc6f6b /test/test_avltree.c
parent204c453656ccab85f1af0bb35e1da34997e8c1c6 (diff)
Change the way unused arguments are handled
Use the __unused macro when declaring unused arguments in function definitions. Use main(void) instead of main(argc, argv) where appropriate.
Diffstat (limited to 'test/test_avltree.c')
-rw-r--r--test/test_avltree.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test_avltree.c b/test/test_avltree.c
index d5c5a9d..a65d5f1 100644
--- a/test/test_avltree.c
+++ b/test/test_avltree.c
@@ -97,7 +97,7 @@ get_id(int i)
}
int
-main(int argc, char *argv[])
+main(void)
{
struct avltree tree;
struct avltree_node *node, *tmp;
@@ -105,9 +105,6 @@ main(int argc, char *argv[])
avltree_slot_t slot;
int i, id;
- (void)argc;
- (void)argv;
-
avltree_init(&tree);
for (i = 0; i < SIZE; i++) {