summaryrefslogtreecommitdiff
path: root/auto_tests/messenger_test.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-08-14 15:27:34 -0400
committerirungentoo <irungentoo@gmail.com>2014-08-14 15:27:34 -0400
commit1298932deb6c05a6ae525fc85159d4485c7be210 (patch)
tree349237ea656434ad56a7a2d3a654cc2f8c572f28 /auto_tests/messenger_test.c
parentdbab15cf0c1f260367c37354ed92d6ae1be828a1 (diff)
UDP can now be disabled.
new_messenger() now takes an options struct as an argument.
Diffstat (limited to 'auto_tests/messenger_test.c')
-rw-r--r--auto_tests/messenger_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c
index 3024ed1a..f1a1ab9b 100644
--- a/auto_tests/messenger_test.c
+++ b/auto_tests/messenger_test.c
@@ -335,7 +335,9 @@ int main(int argc, char *argv[])
335 bad_id = hex_string_to_bin(bad_id_str); 335 bad_id = hex_string_to_bin(bad_id_str);
336 336
337 /* IPv6 status from global define */ 337 /* IPv6 status from global define */
338 m = new_messenger(TOX_ENABLE_IPV6_DEFAULT); 338 Messenger_Options options = {0};
339 options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT;
340 m = new_messenger(&options);
339 341
340 /* setup a default friend and friendnum */ 342 /* setup a default friend and friendnum */
341 if (m_addfriend_norequest(m, (uint8_t *)friend_id) < 0) 343 if (m_addfriend_norequest(m, (uint8_t *)friend_id) < 0)