diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2017-12-14 15:26:08 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-12-20 04:36:30 -0500 |
commit | 92e70b83c0fef79dea9b8be06944b1eaffa4a9ba (patch) | |
tree | fb565ffb9244d18807971b78f52c4de65b6183fc /tools/gpio/gpio-event-mon.c | |
parent | 1efba35afae43094d3f26093f5f1ab8a46686a6f (diff) |
tools/gpio: Don't use u_int32_t
u_int32_t is a non-standard version of uint32_t, that was apparently
introduced by BSD. Use uint32_t from stdint.h instead.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/gpio/gpio-event-mon.c')
-rw-r--r-- | tools/gpio/gpio-event-mon.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index 1c14c2595158..be6768e21b09 100644 --- a/tools/gpio/gpio-event-mon.c +++ b/tools/gpio/gpio-event-mon.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <unistd.h> | 14 | #include <unistd.h> |
15 | #include <stdlib.h> | 15 | #include <stdlib.h> |
16 | #include <stdbool.h> | 16 | #include <stdbool.h> |
17 | #include <stdint.h> | ||
17 | #include <stdio.h> | 18 | #include <stdio.h> |
18 | #include <dirent.h> | 19 | #include <dirent.h> |
19 | #include <errno.h> | 20 | #include <errno.h> |
@@ -27,8 +28,8 @@ | |||
27 | 28 | ||
28 | int monitor_device(const char *device_name, | 29 | int monitor_device(const char *device_name, |
29 | unsigned int line, | 30 | unsigned int line, |
30 | u_int32_t handleflags, | 31 | uint32_t handleflags, |
31 | u_int32_t eventflags, | 32 | uint32_t eventflags, |
32 | unsigned int loops) | 33 | unsigned int loops) |
33 | { | 34 | { |
34 | struct gpioevent_request req; | 35 | struct gpioevent_request req; |
@@ -145,8 +146,8 @@ int main(int argc, char **argv) | |||
145 | const char *device_name = NULL; | 146 | const char *device_name = NULL; |
146 | unsigned int line = -1; | 147 | unsigned int line = -1; |
147 | unsigned int loops = 0; | 148 | unsigned int loops = 0; |
148 | u_int32_t handleflags = GPIOHANDLE_REQUEST_INPUT; | 149 | uint32_t handleflags = GPIOHANDLE_REQUEST_INPUT; |
149 | u_int32_t eventflags = 0; | 150 | uint32_t eventflags = 0; |
150 | int c; | 151 | int c; |
151 | 152 | ||
152 | while ((c = getopt(argc, argv, "c:n:o:dsrf?")) != -1) { | 153 | while ((c = getopt(argc, argv, "c:n:o:dsrf?")) != -1) { |