[gvfs] afp: fix compile warnings



commit df3e3a0a90ceec0d9fbb9d561d165058ae5b0dbb
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Sun Aug 7 10:38:45 2011 +0200

    afp: fix compile warnings

 daemon/gvfsafpconnection.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index ece2f4e..705f7d3 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]