From 1513406f5907290a35bf394c5b07bcb0fec60213 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 18 Jul 2011 13:35:16 +0300 Subject: [PATCH] gobex: Fix compilation error with GPOINTER_TO_UINT Fixes the following issue seen on debian unstable: gobex/gobex.c: In function 'handle_request': gobex/gobex.c:646:50: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] --- gobex/gobex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gobex/gobex.c b/gobex/gobex.c index 93be21f13..2a648490d 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -509,7 +509,7 @@ void g_obex_set_disconnect_function(GObex *obex, GObexFunc func, static gint req_handler_cmpop(gconstpointer a, gconstpointer b) { const struct req_handler *handler = a; - guint8 opcode = GPOINTER_TO_UINT(b); + guint opcode = GPOINTER_TO_UINT(b); return (gint) handler->opcode - (gint) opcode; } @@ -636,7 +636,7 @@ static void handle_response(GObex *obex, GError *err, GObexPacket *rsp) static void handle_request(GObex *obex, GObexPacket *req) { GSList *match; - guint8 op; + guint op; if (g_obex_packet_get_operation(req, NULL) == G_OBEX_OP_CONNECT) parse_connect_data(obex, req); -- 2.47.3