summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kelly <mkelly@xevo.com>2018-05-17 17:14:45 -0700
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-05-20 14:54:39 +0100
commit71b52d2c746b2915d615e29f5873e1ee5f3c5f52 (patch)
tree3d863c5591b7aa560f3d7ee1f0b76b52263917c5
parentbe3be7814a83fb823bb13a91e2011241bd7d2d1d (diff)
downloadlinux-stable-71b52d2c746b2915d615e29f5873e1ee5f3c5f52.tar.gz
linux-stable-71b52d2c746b2915d615e29f5873e1ee5f3c5f52.tar.bz2
linux-stable-71b52d2c746b2915d615e29f5873e1ee5f3c5f52.zip
tools: iio: iio_generic_buffer: fix types to match
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>
-rw-r--r--tools/iio/iio_generic_buffer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/iio/iio_generic_buffer.c b/tools/iio/iio_generic_buffer.c
index f0c6f54a8b2f..aa765c11992b 100644
--- 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;