[glib/wip/pwithnall/1954-dbus-keyring-handling: 6/9] gdbusauthmechanismsha1: Fix return type in precondition guards
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/pwithnall/1954-dbus-keyring-handling: 6/9] gdbusauthmechanismsha1: Fix return type in precondition guards
- Date: Tue, 5 May 2020 15:08:08 +0000 (UTC)
commit f4dc46db45b4e16a470ffeac7b01738261f49ee8
Author: Philip Withnall <withnall endlessm com>
Date: Tue May 5 15:12:11 2020 +0100
gdbusauthmechanismsha1: Fix return type in precondition guards
Signed-off-by: Philip Withnall <withnall endlessm com>
gio/gdbusauthmechanismsha1.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
index 2754d3c2b..7305f8df8 100644
--- a/gio/gdbusauthmechanismsha1.c
+++ b/gio/gdbusauthmechanismsha1.c
@@ -462,8 +462,8 @@ keyring_acquire_lock (const gchar *path,
#endif
int errsv;
- g_return_val_if_fail (path != NULL, FALSE);
- g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+ g_return_val_if_fail (path != NULL, -1);
+ g_return_val_if_fail (error == NULL || *error == NULL, -1);
ret = -1;
lock = g_strdup_printf ("%s.lock", path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]