summaryrefslogtreecommitdiff
path: root/daemon/gvfsafpserver.c
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2011-11-06 19:03:00 +0100
committerCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2012-01-22 09:47:27 +0100
commit86cca680ec185d0a74fa948485d221bc9efe9181 (patch)
tree8c2821fb16291e3b8ee9629578795bdbc137039d /daemon/gvfsafpserver.c
parent88866fdc3c34e8b9ce2d4435098885e67212ac40 (diff)
downloadgvfs-86cca680ec185d0a74fa948485d221bc9efe9181.tar.gz
afp: change g_vfs_afp_connection_get_server_info to g_vfs_afp_query_server_info
It's unnecessary to create a GVfsAfpConnection to retreive the server info
Diffstat (limited to 'daemon/gvfsafpserver.c')
-rw-r--r--daemon/gvfsafpserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gvfsafpserver.c b/daemon/gvfsafpserver.c
index 58456645..6ecd18e7 100644
--- a/daemon/gvfsafpserver.c
+++ b/daemon/gvfsafpserver.c
@@ -724,8 +724,8 @@ get_server_info (GVfsAfpServer *afp_serv,
guint8 count;
guint i;
- reply = g_vfs_afp_connection_get_server_info (afp_serv->conn, cancellable,
- error);
+ reply = g_vfs_afp_query_server_info (G_SOCKET_CONNECTABLE (afp_serv->addr),
+ cancellable, error);
if (!reply)
return FALSE;