summaryrefslogtreecommitdiff
path: root/src/programs
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2015-06-18 22:08:06 +0200
committerRay Strode <rstrode@redhat.com>2018-04-03 14:16:17 -0400
commitfef4b4dea0ebc6cb99a148d8d60badf68a29a6b8 (patch)
tree6f10bf9df6cf74c6d71bbf6ec7a60b1687d145c2 /src/programs
parent630ffead15c8c29efb0c0770cef1cae70bdb738b (diff)
Move to current GLib
Set up glib to use the installed version for deprecation warnings instead of limiting ourselves to [2.30,2.34]; this will let us use newer API, and help us keep up to date with future deprecations. Then fix all the warnings (as of GLib 2.44.1). https://bugs.freedesktop.org/show_bug.cgi?id=91198
Diffstat (limited to 'src/programs')
-rw-r--r--src/programs/pkaction.c2
-rw-r--r--src/programs/pkcheck.c2
-rw-r--r--src/programs/pkexec.c5
-rw-r--r--src/programs/pkttyagent.c2
4 files changed, 0 insertions, 11 deletions
diff --git a/src/programs/pkaction.c b/src/programs/pkaction.c
index 221662a..6dd6877 100644
--- a/src/programs/pkaction.c
+++ b/src/programs/pkaction.c
@@ -125,8 +125,6 @@ main (int argc, char *argv[])
/* Disable remote file access from GIO. */
setenv ("GIO_USE_VFS", "local", 1);
- g_type_init ();
-
opt_show_version = FALSE;
opt_verbose = FALSE;
diff --git a/src/programs/pkcheck.c b/src/programs/pkcheck.c
index 33db128..f1bb4e1 100644
--- a/src/programs/pkcheck.c
+++ b/src/programs/pkcheck.c
@@ -366,8 +366,6 @@ main (int argc, char *argv[])
/* Disable remote file access from GIO. */
setenv ("GIO_USE_VFS", "local", 1);
- g_type_init ();
-
details = polkit_details_new ();
opt_show_help = FALSE;
diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c
index 3b29b24..32c204d 100644
--- a/src/programs/pkexec.c
+++ b/src/programs/pkexec.c
@@ -707,11 +707,6 @@ main (int argc, char *argv[])
goto out;
}
- /* Initialize the GLib type system - this is needed to interact with the
- * PolicyKit daemon
- */
- g_type_init ();
-
/* make sure we are nuked if the parent process dies */
#ifdef __linux__
if (prctl (PR_SET_PDEATHSIG, SIGTERM) != 0)
diff --git a/src/programs/pkttyagent.c b/src/programs/pkttyagent.c
index 533f4a8..bfe00bd 100644
--- a/src/programs/pkttyagent.c
+++ b/src/programs/pkttyagent.c
@@ -78,8 +78,6 @@ main (int argc, char *argv[])
/* Disable remote file access from GIO. */
setenv ("GIO_USE_VFS", "local", 1);
- g_type_init ();
-
error = NULL;
context = g_option_context_new ("");
s = g_strdup_printf (_("Report bugs to: %s\n"