diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-09-30 17:41:36 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-10-01 09:20:34 +0100 |
commit | dac3e280d6f3fd792f1d79313debd03c0df282c4 (patch) | |
tree | c43b4d76620f3d1579cbb768a52e595f3bab8a4d /examples | |
parent | fae0f9d37c6e34f34c92dee85384c29e565bdbce (diff) | |
download | libnice-dac3e280d6f3fd792f1d79313debd03c0df282c4.tar.gz |
tests: Remove g_type_init() calls
We depend on GLib 2.36.0, which deprecated g_type_init() since GType
initialisation is now done automatically.
Reviewed-by: Olivier CrĂȘte <olivier.crete@collabora.com>
Differential Revision: https://phabricator.freedesktop.org/D296
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sdp-example.c | 4 | ||||
-rw-r--r-- | examples/simple-example.c | 4 | ||||
-rw-r--r-- | examples/threaded-example.c | 5 |
3 files changed, 0 insertions, 13 deletions
diff --git a/examples/sdp-example.c b/examples/sdp-example.c index 246341e..bb95440 100644 --- a/examples/sdp-example.c +++ b/examples/sdp-example.c @@ -95,11 +95,7 @@ main(int argc, char *argv[]) g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port); } -#if GLIB_CHECK_VERSION(2, 36, 0) g_networking_init(); -#else - g_type_init(); -#endif gloop = g_main_loop_new(NULL, FALSE); diff --git a/examples/simple-example.c b/examples/simple-example.c index 6e13dc6..17702b1 100644 --- a/examples/simple-example.c +++ b/examples/simple-example.c @@ -105,11 +105,7 @@ main(int argc, char *argv[]) g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port); } -#if GLIB_CHECK_VERSION(2, 36, 0) g_networking_init(); -#else - g_type_init(); -#endif gloop = g_main_loop_new(NULL, FALSE); #ifdef G_OS_WIN32 diff --git a/examples/threaded-example.c b/examples/threaded-example.c index 79eda8d..d23d7f9 100644 --- a/examples/threaded-example.c +++ b/examples/threaded-example.c @@ -104,11 +104,6 @@ main(int argc, char *argv[]) g_debug("Using stun server '[%s]:%u'\n", stun_addr, stun_port); } -#if GLIB_CHECK_VERSION(2, 36, 0) - g_networking_init(); -#else - g_type_init(); -#endif g_networking_init(); gloop = g_main_loop_new(NULL, FALSE); |