linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] tools: iio: iio_generic_buffer: fix types to match
@ 2018-05-18  0:14 Martin Kelly
  2018-05-18  0:14 ` [PATCH v2 2/2] tools: iio: iio_generic_buffer: allow continuous looping Martin Kelly
  2018-05-20 13:55 ` [PATCH v2 1/2] tools: iio: iio_generic_buffer: fix types to match Jonathan Cameron
  0 siblings, 2 replies; 5+ messages in thread
From: Martin Kelly @ 2018-05-18  0:14 UTC (permalink / raw)
  To: linux-iio; +Cc: Jonathan Cameron, Martin Kelly

Several types are mismatched and causing implicit conversions.  Fix them
up so the types match.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
---
 tools/iio/iio_generic_buffer.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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;
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-21 16:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-18  0:14 [PATCH v2 1/2] tools: iio: iio_generic_buffer: fix types to match Martin Kelly
2018-05-18  0:14 ` [PATCH v2 2/2] tools: iio: iio_generic_buffer: allow continuous looping Martin Kelly
2018-05-20 13:57   ` Jonathan Cameron
2018-05-20 13:55 ` [PATCH v2 1/2] tools: iio: iio_generic_buffer: fix types to match Jonathan Cameron
2018-05-21 16:14   ` Martin Kelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).