mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
mlxml: Fix pointed target signedness.
xml-c.c: In function 'mllib_xml_to_string':
xml-c.c:199:47: error: pointer targets in passing argument 2 of 'caml_alloc_initialized_string' differ in signedness [-Werror=pointer-sign]
199 | strv = caml_alloc_initialized_string (size, mem);
| ^~~
| |
| xmlChar * {aka unsigned char *}
(cherry picked from commit ea10827b4cfb3cfe5f782421c01d2902e5f73f90)
This commit is contained in:
@@ -196,7 +196,7 @@ mllib_xml_to_string (value docv, value formatv)
|
||||
doc = docptr_val (docv);
|
||||
xmlDocDumpFormatMemory (doc, &mem, &size, Bool_val (formatv));
|
||||
|
||||
strv = caml_alloc_initialized_string (size, mem);
|
||||
strv = caml_alloc_initialized_string (size, (const char *) mem);
|
||||
free (mem);
|
||||
|
||||
CAMLreturn (strv);
|
||||
|
||||
Reference in New Issue
Block a user