提交 c77b3810 编写于 作者: J Jonathan Cameron 提交者: 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: NJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3dba81ba
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册