summaryrefslogtreecommitdiff
path: root/auto_tests/conference_double_invite_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-12 11:35:01 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-12 14:09:59 +0000
commitd92c96e7832ae4c7f9c32eec0d2f7f661a65b73e (patch)
treef7577121b3463ad094493fbb0cf3601fbcb0f9dc /auto_tests/conference_double_invite_test.c
parentf0f456398da65fc36837c0ab66b983a69b6f9e3e (diff)
Fix a few warnings from clang.
Also remove the use of a VLA in a context where there can be unbounded memory allocations.
Diffstat (limited to 'auto_tests/conference_double_invite_test.c')
-rw-r--r--auto_tests/conference_double_invite_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_tests/conference_double_invite_test.c b/auto_tests/conference_double_invite_test.c
index 55aabfb6..026c2fcb 100644
--- a/auto_tests/conference_double_invite_test.c
+++ b/auto_tests/conference_double_invite_test.c
@@ -73,7 +73,7 @@ static void conference_double_invite_test(Tox **toxes, State *state)
73 fprintf(stderr, "Invitations accepted\n"); 73 fprintf(stderr, "Invitations accepted\n");
74 74
75 // Invite one more time, resulting in friend -1 inviting tox1 (toxes[1]). 75 // Invite one more time, resulting in friend -1 inviting tox1 (toxes[1]).
76 tox_conference_invite(toxes[0], 0, state[0].conference, 0); 76 tox_conference_invite(toxes[0], 0, state[0].conference, nullptr);
77 77
78 tox_iterate(toxes[0], &state[0]); 78 tox_iterate(toxes[0], &state[0]);
79 tox_iterate(toxes[1], &state[1]); 79 tox_iterate(toxes[1], &state[1]);