[gvfs/gnome-3-14] afc: fix wrong enum value
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gnome-3-14] afc: fix wrong enum value
- Date: Wed, 3 Dec 2014 08:40:17 +0000 (UTC)
commit 8c04a8c920ee817173eca0d06441ae403599f1d8
Author: Ondrej Holy <oholy redhat com>
Date: Tue Nov 18 15:54:52 2014 +0100
afc: fix wrong enum value
Value of sbservices_error_t type is compared with INSTPROXY_E_SUCCESS
from instproxy_error_t, SBSERVICES_E_SUCCESS should be used instead.
However it isn't serious, because both constants have same value...
It fixes following warning:
gvfsbackendafc.c:262:21: warning: comparison between ‘sbservices_error_t’ and ‘enum <anonymous>’
[-Wenum-compare]
if (G_LIKELY(cond == INSTPROXY_E_SUCCESS))
daemon/gvfsbackendafc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index 3c0b787..08503f0 100644
--- a/daemon/gvfsbackendafc.c
+++ b/daemon/gvfsbackendafc.c
@@ -259,7 +259,7 @@ g_vfs_backend_inst_check (instproxy_error_t cond, GVfsJob *job)
static int
g_vfs_backend_sbs_check (sbservices_error_t cond, GVfsJob *job)
{
- if (G_LIKELY(cond == INSTPROXY_E_SUCCESS))
+ if (G_LIKELY(cond == SBSERVICES_E_SUCCESS))
{
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]