Closed teohhanhui closed 6 months ago
i.e. change char *const * to const char *const *
char *const *
const char *const *
The problem was apparent from incorrect constness in the bindgen generated bindings: https://gist.github.com/teohhanhui/647227ea483dabdcd8317c6ea228665e
bindgen
e.g. *const *mut c_char instead of the expected *const *const c_char, which matches https://github.com/containers/libkrun/blob/5e376689d58c1c56a22d3935722e66fe09d28685/src/libkrun/src/lib.rs
*const *mut c_char
*const *const c_char
clippy failures not related...
Thanks for the PR! Could you please rebase on top of #182 once it gets merged?
i.e. change
char *const *
toconst char *const *
The problem was apparent from incorrect constness in the
bindgen
generated bindings: https://gist.github.com/teohhanhui/647227ea483dabdcd8317c6ea228665ee.g.
*const *mut c_char
instead of the expected*const *const c_char
, which matches https://github.com/containers/libkrun/blob/5e376689d58c1c56a22d3935722e66fe09d28685/src/libkrun/src/lib.rs