Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Slawomir Bochenski <lkslawek@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH obexd] Fix compiler warning
Date: Mon, 18 Jul 2011 14:54:09 +0200	[thread overview]
Message-ID: <1310993650.21109.159.camel@aeonflux> (raw)
In-Reply-To: <1310988546-8187-1-git-send-email-lkslawek@gmail.com>

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



  parent reply	other threads:[~2011-07-18 12:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 11:29 [PATCH obexd] Fix compiler warning Slawomir Bochenski
2011-07-18 12:12 ` Slawomir Bochenski
2011-07-18 12:54 ` Marcel Holtmann [this message]
2011-07-18 13:09   ` Slawomir Bochenski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1310993650.21109.159.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=lkslawek@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox