From b8c44646b4d6eb6719c78498e8968b8b4d4f8711 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Wed, 1 Feb 2017 15:52:48 +1100 Subject: [PATCH] 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 (cherry picked from commit 2bea45e450e5ebd6544c2a8be4493242158b712e) --- ctdb/common/run_proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ctdb/common/run_proc.c b/ctdb/common/run_proc.c index 96e422c..f9fee80 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); -- 2.9.3