Workaround lack of constness in custom_operations::identifier
authorPino Toscano <ptoscano@redhat.com>
Thu, 30 Aug 2018 10:13:40 +0000 (12:13 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 30 Aug 2018 10:26:32 +0000 (11:26 +0100)
commitabc8cb1b689390381964187481f523cfab60b21c
tree8c04d2deea3d928de55138243557a6955da870e9
parentcb3b0cd8c48cf7315ad64c05425f9dca7ac6068c
Workaround lack of constness in custom_operations::identifier

Sadly the custom_operations struct of the OCaml C API uses char* for the
'identifier' member, even though it does not change it.

To avoid getting warnings when building with stricter CFLAGS, apply ugly
casts.
libvirt/libvirt_c_epilogue.c