summaryrefslogtreecommitdiff
path: root/auto_tests/messenger_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-19 13:07:45 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-27 01:16:14 +0100
commit13ae9e9a93a1c02fad9475002c0391b86b7ad7bb (patch)
treea9575d3582c4f40e051c93ae18dded03fdddc432 /auto_tests/messenger_test.c
parent1f25fc0ae417bfc47dea4966cb5e43689aa88d5c (diff)
Move logging to a callback.
This removes the global logger (which by the way was deleted when the first tox was killed, so other toxes would then stop logging). Various bits of the code now carry a logger or pass it around. It's a bit less transparent now, but now there is no need to have a global logger, and clients can decide what to log and where.
Diffstat (limited to 'auto_tests/messenger_test.c')
-rw-r--r--auto_tests/messenger_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c
index 2b0b2519..9d72ca46 100644
--- a/auto_tests/messenger_test.c
+++ b/auto_tests/messenger_test.c
@@ -337,7 +337,7 @@ int main(int argc, char *argv[])
337 /* IPv6 status from global define */ 337 /* IPv6 status from global define */
338 Messenger_Options options = {0}; 338 Messenger_Options options = {0};
339 options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT; 339 options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT;
340 m = new_messenger(&options, 0); 340 m = new_messenger(NULL, &options, 0);
341 341
342 /* setup a default friend and friendnum */ 342 /* setup a default friend and friendnum */
343 if (m_addfriend_norequest(m, (uint8_t *)friend_id) < 0) 343 if (m_addfriend_norequest(m, (uint8_t *)friend_id) < 0)