projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be3be78
)
tools: iio: iio_generic_buffer: fix types to match
author
Martin Kelly
<mkelly@xevo.com>
Fri, 18 May 2018 00:14:45 +0000
(17:14 -0700)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Sun, 20 May 2018 13:54:39 +0000
(14:54 +0100)
Several types are mismatched and causing implicit conversions. Fix them
up so the types match.
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
tools/iio/iio_generic_buffer.c
patch
|
blob
|
history
diff --git
a/tools/iio/iio_generic_buffer.c
b/tools/iio/iio_generic_buffer.c
index
f0c6f54
..
aa765c1
100644
(file)
--- a/
tools/iio/iio_generic_buffer.c
+++ b/
tools/iio/iio_generic_buffer.c
@@
-334,7
+334,10
@@
int main(int argc, char **argv)
unsigned long timedelay = 1000000;
unsigned long buf_len = 128;
- int ret, c, i, j, toread;
+ ssize_t i;
+ unsigned long j;
+ unsigned long toread;
+ int ret, c;
int fp = -1;
int num_channels = 0;