1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-common: ioctl(.. FIONREAD ..) returns an int value

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12549

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Feb  1 14:29:14 CET 2017 on sn-devel-144
This commit is contained in:
Amitay Isaacs 2017-02-01 15:52:48 +11:00 committed by Volker Lendecke
parent 7fd3eb6c04
commit 2bea45e450

View File

@ -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);