diff options
author | Ondrej Holy <oholy@redhat.com> | 2014-11-18 15:54:52 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2014-11-20 15:07:23 +0100 |
commit | f8a9fd893431495fcda9f22e9c9e845c969248e4 (patch) | |
tree | 70fa716c5ccc7d6de701241c73a10af4fe03db38 | |
parent | 9a43a4bdb8676d47a3fc265e59225df976edaaf0 (diff) | |
download | gvfs-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.c | 2 |
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; } |