search for: sc_cast_of_argument_to_free

Displaying 2 results from an estimated 2 matches for "sc_cast_of_argument_to_free".

2009 Nov 09
1
[PATCH libguestfs] avoid "syntax-check" failure
syntax-check failed with this: fuse/guestmount.c:364: free ((char *) r); maint.mk: don't cast free argument make: *** [sc_cast_of_argument_to_free] Error 1 >From ed007e673b00ec545fcff2a708a57d98075c6460 Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Mon, 9 Nov 2009 15:06:36 +0100 Subject: [PATCH libguestfs] avoid "syntax-check" failure * fuse/guestmount.c (fg_readlink): Don't declare "...
2012 Sep 16
3
Remaining syntax-check errors in libguestfs
...pr " free ((char *) optargs_s.%s);\n" n > generator/ocaml.ml:588: pr " free ((char *) optargs_s.%s);\n" n > generator/python.ml:437: pr " free ((char **) optargs_s.%s);\n" n > maint.mk: don't cast free argument > make: *** [sc_cast_of_argument_to_free] Error 1 It seems to me this is another shortcoming of 'const' in C. We currently define the optargs structs as having const char * string fields, eg: struct guestfs_add_domain_argv { //... const char *libvirturi; //... } I tried to change this so that the fields are plain 'ch...