Commit c77b3810 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio:documentation make read_size signed to allow for errors.

Without this all hell breaks loose if you have no data.
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3dba81ba
...@@ -132,7 +132,7 @@ int main(int argc, char **argv) ...@@ -132,7 +132,7 @@ int main(int argc, char **argv)
int datardytrigger = 1; int datardytrigger = 1;
char *data; char *data;
size_t read_size; ssize_t read_size;
struct iio_event_data dat; struct iio_event_data dat;
int dev_num, trig_num; int dev_num, trig_num;
char *buffer_access, *buffer_event; char *buffer_access, *buffer_event;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment