From: "Chun Yan Liu" Subject: Re: [PATCH V8 3/7] libxl: add pvusb API Date: Wed, 11 Nov 2015 00:21:13 -0700 Message-ID: <56435CE90200006600080EEE@relay2.provo.novell.com> References: <1445418510-19614-1-git-send-email-cyliu@suse.com> <1445418510-19614-4-git-send-email-cyliu@suse.com> <22080.57829.461049.37192@mariner.uk.xensource.com> <56421E2B020000660008019B@relay2.provo.novell.com> <22082.13115.276320.572627@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <22082.13115.276320.572627@mariner.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: George Dunlap , Ian Jackson Cc: Juergen Gross , Wei Liu , Ian Campbell , "xen-devel@lists.xen.org" , Jim Fehlig , Simon Cao List-Id: xen-devel@lists.xenproject.org >>> On 11/11/2015 at 02:11 AM, in message <22082.13115.276320.572627@mariner.uk.xensource.com>, Ian Jackson wrote: > George Dunlap writes ("Re: [Xen-devel] [PATCH V8 3/7] libxl: add pvusb API"): > > On Tue, Nov 10, 2015 at 8:41 AM, Chun Yan Liu wrote: > > > Which cast? Here, we want to get a uint_8 value, but buf is a string, > > > we need to do atoi. > > > > atoi() isn't a cast, it's a function call. The cast is the (char *) bit. > > > > I think probably you could get away with declaring buf as (char *). > > &buf should be converted to void** automatically without any warnings, > > I think. > > No, char** won't be automatically converted to void**. But void* will > be automatically converted to char*. Yes, that's right. > > (Will read the rest of this thread later, probably tomorrow.) > > Ian. > >