Przeglądaj źródła

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>
Martin Kelly 7 lat temu
rodzic
commit
71b52d2c74
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      tools/iio/iio_generic_buffer.c

+ 4 - 1
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;