summaryrefslogtreecommitdiffstats
path: root/src/Daemon/Settings.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-09 14:38:41 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-09 14:38:41 +0200
commit9418dd78a0a6b85cee403fc6f51f9e710c891487 (patch)
treea82a6412e5ffce9df4b317a6d50ff87a360c2928 /src/Daemon/Settings.cpp
parentd04a619443303243a649f3f1baa20ad2f3ae1d89 (diff)
downloadabrt-9418dd78a0a6b85cee403fc6f51f9e710c891487.tar.gz
abrt-9418dd78a0a6b85cee403fc6f51f9e710c891487.tar.xz
abrt-9418dd78a0a6b85cee403fc6f51f9e710c891487.zip
styple fixes to polkit code, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/Settings.cpp')
-rw-r--r--src/Daemon/Settings.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/Daemon/Settings.cpp b/src/Daemon/Settings.cpp
index 0eea2bd4..436334ae 100644
--- a/src/Daemon/Settings.cpp
+++ b/src/Daemon/Settings.cpp
@@ -425,22 +425,20 @@ void SaveSettings()
}
/* dbus call to change some .conf file data */
-void SetSettings(const map_abrt_settings_t& pSettings, const char * dbus_sender)
+void SetSettings(const map_abrt_settings_t& pSettings, const char *dbus_sender)
{
bool dirty = false;
int polkit_result;
- if(( polkit_result = polkit_check_authorization(dbus_sender,
- "org.fedoraproject.abrt.save-settings")) != PolkitYes)
+ polkit_result = polkit_check_authorization(dbus_sender,
+ "org.fedoraproject.abrt.save-settings");
+ if (polkit_result != PolkitYes)
{
- log("user %s not authorized, returned %d", dbus_sender,
- polkit_result );
+ log("user %s not authorized, returned %d", dbus_sender, polkit_result);
return;
- } else
- {
- log("user %s succesfully authorized", dbus_sender);
}
-
+ log("user %s succesfully authorized", dbus_sender);
+
map_abrt_settings_t::const_iterator it = pSettings.find(SECTION_COMMON);
map_abrt_settings_t::const_iterator end = pSettings.end();
if (it != end)