diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Daemon/Makefile.am | 7 | ||||
-rw-r--r-- | src/Daemon/Polkit.cpp | 2 | ||||
-rw-r--r-- | src/Daemon/Polkit.h | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/Daemon/Makefile.am b/src/Daemon/Makefile.am index 934016a9..17823d63 100644 --- a/src/Daemon/Makefile.am +++ b/src/Daemon/Makefile.am @@ -13,7 +13,8 @@ abrtd_SOURCES = \ CommLayerServerSocket.h CommLayerServerSocket.cpp \ CommLayerServerDBus.h CommLayerServerDBus.cpp \ Daemon.cpp Daemon.h \ - Settings.h Settings.cpp + Settings.h Settings.cpp \ + Polkit.h Polkit.cpp abrtd_CPPFLAGS = \ -I$(srcdir)/../../inc \ -I$(srcdir)/../../lib/MiddleWare \ @@ -25,11 +26,11 @@ abrtd_CPPFLAGS = \ -DCONF_DIR=\"$(CONF_DIR)\" \ -DVAR_RUN=\"$(VAR_RUN)\" \ $(GLIB_CFLAGS) $(DBUS_CFLAGS) \ - $(ENABLE_SOCKET_OR_DBUS) + $(ENABLE_SOCKET_OR_DBUS) $(POLKIT_CFLAGS) abrtd_LDADD = \ ../../lib/MiddleWare/libABRTMiddleWare.la \ ../../lib/CommLayer/libABRTCommLayer.la \ - $(DL_LIBS) $(DBUS_LIBS) $(RPM_LIBS) + $(DL_LIBS) $(DBUS_LIBS) $(RPM_LIBS) $(POLKIT_LIBS) dbusabrtconfdir = ${sysconfdir}/dbus-1/system.d/ dist_dbusabrtconf_DATA = dbus-abrt.conf diff --git a/src/Daemon/Polkit.cpp b/src/Daemon/Polkit.cpp index 8c8e3884..722b788c 100644 --- a/src/Daemon/Polkit.cpp +++ b/src/Daemon/Polkit.cpp @@ -24,7 +24,7 @@ #include "Polkit.h" -PolkitResult polkit_check_authorization(char* dbus_name,char *action_id) +PolkitResult polkit_check_authorization(const char* dbus_name,const char *action_id) { PolkitAuthority *authority; PolkitSubject *subject; diff --git a/src/Daemon/Polkit.h b/src/Daemon/Polkit.h index bb03822f..04aca64f 100644 --- a/src/Daemon/Polkit.h +++ b/src/Daemon/Polkit.h @@ -34,6 +34,6 @@ POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE*/ PolkitChallenge = 0x03 } PolkitResult; -PolkitResult polkit_check_authorization(char * dbus_name,char *action_id); +PolkitResult polkit_check_authorization(const char * dbus_name,const char *action_id); #endif |