summaryrefslogtreecommitdiff
path: root/daemon/gvfsafpconnection.c
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2011-08-07 10:38:45 +0200
committerChristian Kellner <gicmo@gnome.org>2011-08-25 21:19:54 +0200
commitdf3e3a0a90ceec0d9fbb9d561d165058ae5b0dbb (patch)
treef1d7dbbe73f60b46e5aa92aac99f0bcc9c99a6e9 /daemon/gvfsafpconnection.c
parent1a04d440574a505c357e0fde07ee4a94dce896f4 (diff)
downloadgvfs-df3e3a0a90ceec0d9fbb9d561d165058ae5b0dbb.tar.gz
afp: fix compile warnings
Diffstat (limited to 'daemon/gvfsafpconnection.c')
-rw-r--r--daemon/gvfsafpconnection.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index ece2f4eb..705f7d3e 100644
--- a/daemon/gvfsafpconnection.c
+++ b/daemon/gvfsafpconnection.c
@@ -672,7 +672,7 @@ dispatch_reply (GVfsAfpConnection *afp_connection)
RequestData *req_data;
req_data = g_hash_table_lookup (priv->request_hash,
- GUINT_TO_POINTER (priv->read_dsi_header.requestID));
+ GUINT_TO_POINTER ((guint)priv->read_dsi_header.requestID));
if (req_data)
{
GVfsAfpReply *reply;
@@ -684,7 +684,8 @@ dispatch_reply (GVfsAfpConnection *afp_connection)
g_object_unref);
g_simple_async_result_complete (req_data->simple);
- g_hash_table_remove (priv->request_hash, GUINT_TO_POINTER (priv->read_dsi_header.requestID));
+ g_hash_table_remove (priv->request_hash,
+ GUINT_TO_POINTER ((guint)priv->read_dsi_header.requestID));
}
else
g_free (priv->data);
@@ -840,7 +841,7 @@ write_command_cb (GObject *object, GAsyncResult *res, gpointer user_data)
}
g_hash_table_insert (priv->request_hash,
- GUINT_TO_POINTER (GUINT16_FROM_BE (priv->write_dsi_header.requestID)),
+ GUINT_TO_POINTER ((guint)GUINT16_FROM_BE (priv->write_dsi_header.requestID)),
req_data);
send_request (afp_conn);