zeenix / gps-share

Utility to share your GPS device on local network
GNU General Public License v2.0
67 stars 9 forks source link

libc: Use generic c_char type #14

Closed Josua-SR closed 4 years ago

Josua-SR commented 4 years ago

For unknown reasons, the Rust libc bindings disagree between signed and unsigned char among different cpu architectures. E.g. 32- and 64-bit ARM translate char to u8, while amd64 uses i8.

By using the c_char type provided by the libc bindings, this issue can be avoided in a cpu and os independent way.

Fixes #13

Signed-off-by: Josua Mayer josua@solid-run.com