On 07/07/2011 03:26 PM, Paul Eggert wrote:
> 
>    char *argv[3] = { "program", "-ab", NULL };
> 
> with stuff like this:
> 
>    static char program[] = "program";
>    static char x_ab[] = "-ab";
>    char *argv[3] = { program, x_ab, NULL };
> 
> This will pacify the compiler.  It's a bit awkward,
> but it's bound to be more portable than the casts are.

Sure; do you want to tackle that, or shall I?

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to