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 <cy...@suse.com> 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*. (Will read the rest of this thread later, probably tomorrow.) Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel