raymanfx / libv4l-rs

Video4Linux2 bindings for Rust
MIT License
155 stars 65 forks source link

device: Cast string-pointer to c_char instead of i8 #43

Closed MarijnS95 closed 2 years ago

MarijnS95 commented 3 years ago

On certain platforms, like when cross-compiling to Android, strings are defined as u8 instead of i8. The c_char type abstracts this detail away and is used in bindgen, and should hence be used in this cast too.