summaryrefslogtreecommitdiff
path: root/daemon/gvfsftpdircache.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-06-11 17:32:28 +0200
committerBenjamin Otte <otte@gnome.org>2009-06-11 17:38:03 +0200
commitb07c3a9b238f03b203c09adbb764e88b585cfdc6 (patch)
tree915daf66d5c1a992d31786c292412567f8ce8d49 /daemon/gvfsftpdircache.c
parent1f97543c162244e85b08de190a38f92b4338312b (diff)
downloadgvfs-b07c3a9b238f03b203c09adbb764e88b585cfdc6.tar.gz
[FTP] simplify debug id API
Add a separate function for requesting the debug id
Diffstat (limited to 'daemon/gvfsftpdircache.c')
-rw-r--r--daemon/gvfsftpdircache.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/daemon/gvfsftpdircache.c b/daemon/gvfsftpdircache.c
index b94a3b3c..26984f45 100644
--- a/daemon/gvfsftpdircache.c
+++ b/daemon/gvfsftpdircache.c
@@ -134,8 +134,6 @@ g_vfs_ftp_dir_cache_lookup_entry (GVfsFtpDirCache * cache,
guint stamp)
{
GVfsFtpDirCacheEntry *entry;
- GIOStream *stream;
- int debug_id;
g_mutex_lock (cache->lock);
entry = g_hash_table_lookup (cache->directories, dir);
@@ -164,9 +162,8 @@ g_vfs_ftp_dir_cache_lookup_entry (GVfsFtpDirCache * cache,
return NULL;
entry = g_vfs_ftp_dir_cache_entry_new (stamp);
- stream = g_vfs_ftp_connection_get_data_stream (task->conn, &debug_id);
- cache->funcs->process (g_io_stream_get_input_stream (stream),
- debug_id,
+ cache->funcs->process (g_io_stream_get_input_stream (g_vfs_ftp_connection_get_data_stream (task->conn)),
+ g_vfs_ftp_connection_get_debug_id (task->conn),
dir,
entry,
task->cancellable,