summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-02-28 16:32:07 +0100
committerBastien Nocera <hadess@hadess.net>2018-02-28 18:25:00 +0100
commit5c91488cbaf750cd41e0314aed0c57a7416e5074 (patch)
treefc21e6d4c0949d0afc110b4285a4043f6906c7a4
parent096bf2224cf79c93a427f0c77639b34f576037ee (diff)
downloadgvfs-5c91488cbaf750cd41e0314aed0c57a7416e5074.tar.gz
smb: Remove entry_errno struct member
It's set, but not used anywhere. https://bugzilla.gnome.org/show_bug.cgi?id=793923
-rw-r--r--daemon/gvfsbackendsmbbrowse.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/daemon/gvfsbackendsmbbrowse.c b/daemon/gvfsbackendsmbbrowse.c
index 4e06dc7f..2ed6fd72 100644
--- a/daemon/gvfsbackendsmbbrowse.c
+++ b/daemon/gvfsbackendsmbbrowse.c
@@ -90,7 +90,6 @@ struct _GVfsBackendSmbBrowse
GMutex update_cache_lock;
time_t last_entry_update;
GList *entries;
- int entry_errno;
};
@@ -548,7 +547,6 @@ update_cache (GVfsBackendSmbBrowse *backend, SMBCFILE *supplied_dir)
char dirents[1024*4];
struct smbc_dirent *dirp;
GList *entries;
- int entry_errno;
SMBCFILE *dir;
int res;
smbc_opendir_fn smbc_opendir;
@@ -557,7 +555,6 @@ update_cache (GVfsBackendSmbBrowse *backend, SMBCFILE *supplied_dir)
entries = NULL;
- entry_errno = 0;
res = -1;
g_mutex_lock (&backend->update_cache_lock);
@@ -575,7 +572,6 @@ update_cache (GVfsBackendSmbBrowse *backend, SMBCFILE *supplied_dir)
g_free (uri);
if (dir == NULL)
{
- entry_errno = errno;
goto out;
}
@@ -632,7 +628,6 @@ update_cache (GVfsBackendSmbBrowse *backend, SMBCFILE *supplied_dir)
/* Clear old cache */
g_list_free_full (backend->entries, (GDestroyNotify)browse_entry_free);
backend->entries = entries;
- backend->entry_errno = entry_errno;
backend->last_entry_update = time (NULL);
g_debug ("update_cache - done.\n");