Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1315826997-13818-1-git-send-email-luiz.dentz@gmail.com> <1315826997-13818-2-git-send-email-luiz.dentz@gmail.com> Date: Mon, 12 Sep 2011 17:48:53 +0300 Message-ID: Subject: Re: [PATCH BlueZ 2/5] AVRCP: rename avrcp_header to avc_header From: Luiz Augusto von Dentz To: Lucas De Marchi Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Lucas, On Mon, Sep 12, 2011 at 4:10 PM, Lucas De Marchi wrote: >> - ? ? ? int sk; >> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? AVC_HEADER_LENGTH]; >> + ? ? ? int sk = g_io_channel_unix_get_fd(control->io); > > You are re-introducing a bug here. Please see "dec26ee Fix fd usage > when not connected" Must have reintroduced it when I was rebasing it, gonna fix it. > >> + ? ? ? struct avrcp_spec_avc_pdu *pdu = (void *) avc + AVC_HEADER_LENGTH; > > We might want to change this to: > > struct avrcp_spec_avc_pdu *pdu = (avrcp_spec_avc_pdu *)(avc + > AVC_HEADER_LENGTH); > > This way we kill some warnings on ARM: arithmetic with void pointer Don't remember seeing any problem with it, but anyway it is not something Im introducing. -- Luiz Augusto von Dentz