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: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
3dba81ba80
commit
c77b38108d
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ int main(int argc, char **argv)
|
|||
|
||||
int datardytrigger = 1;
|
||||
char *data;
|
||||
size_t read_size;
|
||||
ssize_t read_size;
|
||||
struct iio_event_data dat;
|
||||
int dev_num, trig_num;
|
||||
char *buffer_access, *buffer_event;
|
||||
|
|
Loading…
Reference in a new issue