aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-08-16 02:11:08 +0800
committerkremlin <ian@kremlin.cc>2014-08-16 02:11:08 +0800
commiteb78abe998a0ee15d66350455629c0aac1d3af71 (patch)
treeb1f59ae19f1fb01affab0ebbc71f790fc991abff /src
parent4a537080c283b57479600b804a2bc1a98c51a64d (diff)
downloadsystembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.gz
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.bz2
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.lz
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.xz
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.tar.zst
systembsd-eb78abe998a0ee15d66350455629c0aac1d3af71.zip
include polkit.h in all interfaces, edit makefile accordingly
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/hostnamed/hostnamed.c5
-rw-r--r--src/interfaces/localed/localed.c1
-rw-r--r--src/interfaces/logind/logind.c1
-rw-r--r--src/interfaces/timedated/timedated.c1
4 files changed, 6 insertions, 2 deletions
diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c
index d8111d8..19a196c 100644
--- a/src/interfaces/hostnamed/hostnamed.c
+++ b/src/interfaces/hostnamed/hostnamed.c
@@ -29,7 +29,7 @@
#include <glib/gprintf.h>
#include <glib-unix.h>
-/* #include <gtk/gtk.h> */
+#include <polkit/polkit.h>
#include "hostnamed-gen.h"
#include "hostnamed.h"
@@ -137,7 +137,8 @@ on_handle_set_hostname(Hostname1 *hn1_passed_interf,
ret = TRUE;
}
- hostname1_complete_set_hostname(hn1_passed_interf, invoc);
+ if(ret)
+ hostname1_complete_set_hostname(hn1_passed_interf, invoc);
if(proposed_hostname)
g_free(proposed_hostname);
diff --git a/src/interfaces/localed/localed.c b/src/interfaces/localed/localed.c
index f788441..596c2e3 100644
--- a/src/interfaces/localed/localed.c
+++ b/src/interfaces/localed/localed.c
@@ -23,6 +23,7 @@
#include <glib/gprintf.h>
#include <glib-unix.h>
+#include <polkit/polkit.h>
#include "localed-gen.h"
#include "localed.h"
diff --git a/src/interfaces/logind/logind.c b/src/interfaces/logind/logind.c
index 7d887b6..9ccde2f 100644
--- a/src/interfaces/logind/logind.c
+++ b/src/interfaces/logind/logind.c
@@ -23,6 +23,7 @@
#include <glib/gprintf.h>
#include <glib-unix.h>
+#include <polkit/polkit.h>
#include "logind-gen.h"
#include "logind.h"
diff --git a/src/interfaces/timedated/timedated.c b/src/interfaces/timedated/timedated.c
index 4dd2dba..67f7a0c 100644
--- a/src/interfaces/timedated/timedated.c
+++ b/src/interfaces/timedated/timedated.c
@@ -23,6 +23,7 @@
#include <glib/gprintf.h>
#include <glib-unix.h>
+#include <polkit/polkit.h>
#include "timedated-gen.h"
#include "timedated.h"