Re: [PATCH obexd] Fix compiler warning

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

 



Hi Slawomir,

>  gobex/gobex.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/gobex/gobex.c b/gobex/gobex.c
> index 93be21f..173912f 100644
> --- a/gobex/gobex.c
> +++ b/gobex/gobex.c
> @@ -643,8 +643,8 @@ static void handle_request(GObex *obex, GObexPacket *req)
>  
>  	op = g_obex_packet_get_operation(req, NULL);
>  
> -	match = g_slist_find_custom(obex->req_handlers, GUINT_TO_POINTER(op),
> -							req_handler_cmpop);
> +	match = g_slist_find_custom(obex->req_handlers,
> +			GUINT_TO_POINTER((guint)op), req_handler_cmpop);

what compiler warning does this fix. Lets fix this properly and not
introduce more magic casting.

Regards

Marcel


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux