summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-02-02 16:45:01 -0800
committerAleksander Morgado <aleksander@aleksander.es>2017-02-03 10:05:14 +0100
commit31655bb5a5e2c806cee23b9ee41c2e663c5decbd (patch)
tree65df1333c681dceac4ad6424aa09cc6244631b20 /test
parentf20f2d04282f673cebc2ce9262c5b10adab82fa2 (diff)
downloadModemManager-31655bb5a5e2c806cee23b9ee41c2e663c5decbd.tar.gz
glib: remove invocations of g_type_init()
g_type_init() has been deprecated (and also marked with the attribute 'deprecated') since glib 2.36 as the type system is automatically initialized. Since the minimum version of glib required by ModemManager is 2.36, calling g_type_init() isn't necessarily in the ModemManager code.
Diffstat (limited to 'test')
-rw-r--r--test/lsudev.c2
-rw-r--r--test/mmrules.c2
-rw-r--r--test/mmtty.c2
3 files changed, 0 insertions, 6 deletions
diff --git a/test/lsudev.c b/test/lsudev.c
index b4ff790ba..7b8860e1d 100644
--- a/test/lsudev.c
+++ b/test/lsudev.c
@@ -156,8 +156,6 @@ main (int argc, char *argv[])
return 1;
}
- g_type_init ();
-
loop = g_main_loop_new (NULL, FALSE);
setup_signals ();
diff --git a/test/mmrules.c b/test/mmrules.c
index f8c4c3e4d..08b7c00fa 100644
--- a/test/mmrules.c
+++ b/test/mmrules.c
@@ -136,8 +136,6 @@ int main (int argc, char **argv)
setlocale (LC_ALL, "");
- g_type_init ();
-
/* Setup option context, process it and destroy it */
context = g_option_context_new ("- ModemManager udev rules testing");
g_option_context_add_main_entries (context, main_entries, NULL);
diff --git a/test/mmtty.c b/test/mmtty.c
index 7947f814d..966225c7c 100644
--- a/test/mmtty.c
+++ b/test/mmtty.c
@@ -259,8 +259,6 @@ int main (int argc, char **argv)
setlocale (LC_ALL, "");
- g_type_init ();
-
/* Setup option context, process it and destroy it */
context = g_option_context_new ("- ModemManager TTY testing");
g_option_context_add_main_entries (context, main_entries, NULL);