[PATCH] g_type_init call is no longer needed

Brian C. Lane bcl at redhat.com
Mon Jan 14 16:56:19 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

---
 pyanaconda/isys/iface.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/pyanaconda/isys/iface.c b/pyanaconda/isys/iface.c
index af64264..299f7ab 100644
--- a/pyanaconda/isys/iface.c
+++ b/pyanaconda/isys/iface.c
@@ -178,8 +178,6 @@ char *iface_ip2str(char *ifname, int family) {
         return NULL;
     }
 
-    g_type_init();
-
     client = nm_client_new();
     if (!client) {
         return NULL;
@@ -420,8 +418,6 @@ gboolean is_nm_connected(void) {
     NMState state;
     NMClient *client = NULL;
 
-    g_type_init();
-
     client = nm_client_new();
     if (!client)
         return FALSE;
@@ -440,8 +436,6 @@ gboolean is_nm_running(void) {
     gboolean running;
     NMClient *client = NULL;
 
-    g_type_init();
-
     client = nm_client_new();
     if (!client)
         return FALSE;
@@ -456,8 +450,6 @@ gboolean is_iface_activated(char * ifname) {
     NMClient *client = NULL;
     const GPtrArray *devices;
 
-    g_type_init();
-
     client = nm_client_new();
     if (!client)
         return FALSE;
-- 
1.8.0.2



More information about the anaconda-patches mailing list