[gupnp-igd] Remove calls to g_type_init() and g_thread_init()
- From: Olivier Crête <tester src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-igd] Remove calls to g_type_init() and g_thread_init()
- Date: Wed, 18 Mar 2020 23:23:10 +0000 (UTC)
commit ae5fa7371ad3b0c7dfbfd8f1fbb697674a42cb47
Author: Olivier Crête <olivier crete collabora com>
Date: Wed Mar 18 18:53:44 2020 -0400
Remove calls to g_type_init() and g_thread_init()
tests/examples/test-thread.c | 3 ---
tests/examples/test.c | 3 ---
tests/gtest/gupnp-simple-igd.c | 2 --
3 files changed, 8 deletions(-)
---
diff --git a/tests/examples/test-thread.c b/tests/examples/test-thread.c
index ce6d669..4ff97cb 100644
--- a/tests/examples/test-thread.c
+++ b/tests/examples/test-thread.c
@@ -52,9 +52,6 @@ main (int argc, char **argv)
internal_port = atoi (argv[3]);
g_return_val_if_fail (external_port && internal_port, 1);
- g_type_init ();
- g_thread_init (NULL);
-
igd = gupnp_simple_igd_thread_new ();
g_signal_connect (igd, "mapped-external-port",
diff --git a/tests/examples/test.c b/tests/examples/test.c
index d2faa80..128defd 100644
--- a/tests/examples/test.c
+++ b/tests/examples/test.c
@@ -67,9 +67,6 @@ main (int argc, char **argv)
internal_port = atoi (argv[3]);
g_return_val_if_fail (external_port && internal_port, 1);
- g_type_init ();
- g_thread_init (NULL);
-
ctx = g_main_context_new ();
loop = g_main_loop_new (ctx, FALSE);
diff --git a/tests/gtest/gupnp-simple-igd.c b/tests/gtest/gupnp-simple-igd.c
index d051d13..6e62fea 100644
--- a/tests/gtest/gupnp-simple-igd.c
+++ b/tests/gtest/gupnp-simple-igd.c
@@ -475,8 +475,6 @@ test_gupnp_simple_igd_empty_ip(void)
int main (int argc, char **argv)
{
- g_type_init ();
- g_thread_init (NULL);
g_test_init (&argc, &argv, NULL);
g_test_add_func("/simpleigd/new", test_gupnp_simple_igd_new);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]