projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c65a660
)
core: use uint8_t instead of __u8
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Thu, 23 Feb 2017 15:54:59 +0000
(16:54 +0100)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Thu, 23 Feb 2017 15:54:59 +0000
(16:54 +0100)
User space should use types defined in <stdint.h>, not the
linux-specific ones.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c
patch
|
blob
|
history
diff --git
a/src/lib/core.c
b/src/lib/core.c
index bb13a048bee5fb644a9c82fbfbcdcff219ba2eda..b9689be444ef043a9f4763c8254266d2e0e6aa76 100644
(file)
--- 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);