summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Erculiani <[email protected]>2013-07-10 14:22:44 +0200
committerFabio Erculiani <[email protected]>2013-07-10 14:22:44 +0200
commit247f3aeeffd20e0971641d8bb9ab1337f81991cd (patch)
treee1c61bdd3164e8d4c3308d97ea617a9ada15ff24
parentc415be077de603ac1a5f4fafc6df649e12bc6118 (diff)
downloadmate-power-manager-247f3aeeffd20e0971641d8bb9ab1337f81991cd.tar.bz2
mate-power-manager-247f3aeeffd20e0971641d8bb9ab1337f81991cd.tar.xz
Fix gpm_prefs_init return values
-rw-r--r--src/gpm-prefs-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index ee63674..d1795dd 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -841,7 +841,7 @@ gpm_prefs_init (GpmPrefs *prefs)
if (proxy == NULL) {
egg_error("Error connecting to dbus - %s", error->message);
g_error_free (error);
- return -1;
+ return;
}
res = g_dbus_proxy_call_sync (proxy, "CanPowerOff",
@@ -913,7 +913,7 @@ gpm_prefs_init (GpmPrefs *prefs)
if (proxy == NULL) {
egg_error("Error connecting to dbus - %s", error->message);
g_error_free (error);
- return -1;
+ return;
}
res = g_dbus_proxy_call_sync (proxy, "Get",