From: Bartosz Golaszewski Date: Thu, 23 Feb 2017 15:54:59 +0000 (+0100) Subject: core: use uint8_t instead of __u8 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=25f2ccff8fe1f2559b4f7068467a05a8fb7153ed;p=qemu-gpiodev%2Flibgpiod.git core: use uint8_t instead of __u8 User space should use types defined in , not the linux-specific ones. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/lib/core.c b/src/lib/core.c index bb13a04..b9689be 100644 --- a/src/lib/core.c +++ b/src/lib/core.c @@ -689,7 +689,7 @@ int gpiod_line_set_value_bulk(struct gpiod_line_bulk *bulk, int *values) memset(&data, 0, sizeof(data)); for (i = 0; i < bulk->num_lines; i++) - data.values[i] = (__u8)!!values[i]; + data.values[i] = (uint8_t)!!values[i]; status = gpio_ioctl(line_get_handle_fd(bulk->lines[0]), GPIOHANDLE_SET_LINE_VALUES_IOCTL, &data);