aboutsummaryrefslogtreecommitdiff
path: root/plugins
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 /plugins
parentf20f2d04282f673cebc2ce9262c5b10adab82fa2 (diff)
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 'plugins')
-rw-r--r--plugins/altair/tests/test-modem-helpers-altair-lte.c1
-rw-r--r--plugins/cinterion/tests/test-modem-helpers-cinterion.c1
-rw-r--r--plugins/generic/tests/test-service-generic.c1
-rw-r--r--plugins/huawei/tests/test-modem-helpers-huawei.c1
-rw-r--r--plugins/icera/tests/test-modem-helpers-icera.c1
-rw-r--r--plugins/linktop/tests/test-modem-helpers-linktop.c1
-rw-r--r--plugins/mbm/tests/test-modem-helpers-mbm.c1
-rw-r--r--plugins/telit/tests/test-mm-modem-helpers-telit.c1
-rw-r--r--plugins/tests/test-udev-rules.c1
-rw-r--r--plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c1
-rw-r--r--plugins/ublox/tests/test-modem-helpers-ublox.c1
11 files changed, 0 insertions, 11 deletions
diff --git a/plugins/altair/tests/test-modem-helpers-altair-lte.c b/plugins/altair/tests/test-modem-helpers-altair-lte.c
index d83d3e50..4d038ce1 100644
--- a/plugins/altair/tests/test-modem-helpers-altair-lte.c
+++ b/plugins/altair/tests/test-modem-helpers-altair-lte.c
@@ -142,7 +142,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/altair/parse_bands", test_parse_bands);
diff --git a/plugins/cinterion/tests/test-modem-helpers-cinterion.c b/plugins/cinterion/tests/test-modem-helpers-cinterion.c
index 23739516..022fec38 100644
--- a/plugins/cinterion/tests/test-modem-helpers-cinterion.c
+++ b/plugins/cinterion/tests/test-modem-helpers-cinterion.c
@@ -541,7 +541,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/cinterion/scfg", test_scfg);
diff --git a/plugins/generic/tests/test-service-generic.c b/plugins/generic/tests/test-service-generic.c
index 8c21cd05..c6e4277a 100644
--- a/plugins/generic/tests/test-service-generic.c
+++ b/plugins/generic/tests/test-service-generic.c
@@ -82,7 +82,6 @@ test_enable_disable (TestFixture *fixture)
int main (int argc,
char *argv[])
{
- g_type_init ();
g_test_init (&argc, &argv, NULL);
TEST_ADD ("/MM/Service/Generic/enable-disable", test_enable_disable);
diff --git a/plugins/huawei/tests/test-modem-helpers-huawei.c b/plugins/huawei/tests/test-modem-helpers-huawei.c
index 7044582d..46c90f44 100644
--- a/plugins/huawei/tests/test-modem-helpers-huawei.c
+++ b/plugins/huawei/tests/test-modem-helpers-huawei.c
@@ -1291,7 +1291,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/huawei/ndisstatqry", test_ndisstatqry);
diff --git a/plugins/icera/tests/test-modem-helpers-icera.c b/plugins/icera/tests/test-modem-helpers-icera.c
index 2e7b26fc..3761b029 100644
--- a/plugins/icera/tests/test-modem-helpers-icera.c
+++ b/plugins/icera/tests/test-modem-helpers-icera.c
@@ -199,7 +199,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/icera/ipdpaddr", test_ipdpaddr);
diff --git a/plugins/linktop/tests/test-modem-helpers-linktop.c b/plugins/linktop/tests/test-modem-helpers-linktop.c
index 3a5797e7..27119bbb 100644
--- a/plugins/linktop/tests/test-modem-helpers-linktop.c
+++ b/plugins/linktop/tests/test-modem-helpers-linktop.c
@@ -85,7 +85,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/linktop/cfun/query/current-modes", test_cfun_query_current_modes);
diff --git a/plugins/mbm/tests/test-modem-helpers-mbm.c b/plugins/mbm/tests/test-modem-helpers-mbm.c
index df49ca7e..8c573af4 100644
--- a/plugins/mbm/tests/test-modem-helpers-mbm.c
+++ b/plugins/mbm/tests/test-modem-helpers-mbm.c
@@ -279,7 +279,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/mbm/e2ipcfg", test_e2ipcfg);
diff --git a/plugins/telit/tests/test-mm-modem-helpers-telit.c b/plugins/telit/tests/test-mm-modem-helpers-telit.c
index 88a889e6..40e36289 100644
--- a/plugins/telit/tests/test-mm-modem-helpers-telit.c
+++ b/plugins/telit/tests/test-mm-modem-helpers-telit.c
@@ -515,7 +515,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/telit/csim", test_mm_telit_parse_csim_response);
diff --git a/plugins/tests/test-udev-rules.c b/plugins/tests/test-udev-rules.c
index 369e22bb..b32ceef1 100644
--- a/plugins/tests/test-udev-rules.c
+++ b/plugins/tests/test-udev-rules.c
@@ -144,7 +144,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/test-udev-rules/huawei", test_huawei);
diff --git a/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c b/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c
index f3a7ea42..bc05b7c2 100644
--- a/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c
+++ b/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c
@@ -118,7 +118,6 @@ int main (int argc, char **argv)
GTestSuite *suite;
gint result;
- g_type_init ();
g_test_init (&argc, &argv, NULL);
suite = g_test_get_root ();
diff --git a/plugins/ublox/tests/test-modem-helpers-ublox.c b/plugins/ublox/tests/test-modem-helpers-ublox.c
index 34896afc..703e915b 100644
--- a/plugins/ublox/tests/test-modem-helpers-ublox.c
+++ b/plugins/ublox/tests/test-modem-helpers-ublox.c
@@ -828,7 +828,6 @@ int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
- g_type_init ();
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/MM/ublox/upincnt/response", test_upincnt_response);