From: Amitay Isaacs Date: Wed, 1 Feb 2017 04:52:48 +0000 (+1100) Subject: ctdb-common: ioctl(.. FIONREAD ..) returns an int value X-Git-Tag: talloc-2.1.9~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bea45e450e5ebd6544c2a8be4493242158b712e;p=thirdparty%2Fsamba.git ctdb-common: ioctl(.. FIONREAD ..) returns an int value BUG: https://bugzilla.samba.org/show_bug.cgi?id=12549 Signed-off-by: Amitay Isaacs Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Wed Feb 1 14:29:14 CET 2017 on sn-devel-144 --- diff --git a/ctdb/common/run_proc.c b/ctdb/common/run_proc.c index 96e422cde87..f9fee80e907 100644 --- a/ctdb/common/run_proc.c +++ b/ctdb/common/run_proc.c @@ -132,8 +132,9 @@ static void proc_read_handler(struct tevent_context *ev, { struct proc_context *proc = talloc_get_type_abort( private_data, struct proc_context); - size_t offset, len = 0; + size_t offset; ssize_t nread; + int len = 0; int ret; ret = ioctl(proc->fd, FIONREAD, &len);