summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2014-11-18 15:54:52 +0100
committerOndrej Holy <oholy@redhat.com>2014-11-20 15:07:23 +0100
commitf8a9fd893431495fcda9f22e9c9e845c969248e4 (patch)
tree70fa716c5ccc7d6de701241c73a10af4fe03db38
parent9a43a4bdb8676d47a3fc265e59225df976edaaf0 (diff)
downloadgvfs-f8a9fd893431495fcda9f22e9c9e845c969248e4.tar.gz
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))
-rw-r--r--daemon/gvfsbackendafc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index 7fcb2b09..4d0213f1 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;
}