From fd4405747c18463aad98877f277ab5d6eb54f78f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 1 Feb 2021 20:00:18 +0100 Subject: hurd TIOCFLUSH: fix fixing argument The argument actually used inside send_rpc is argptr, not arg. --- sysdeps/mach/hurd/ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/mach/hurd/ioctl.c b/sysdeps/mach/hurd/ioctl.c index 0d5bc176d1..ed5de1332f 100644 --- a/sysdeps/mach/hurd/ioctl.c +++ b/sysdeps/mach/hurd/ioctl.c @@ -115,8 +115,8 @@ __ioctl (int fd, unsigned long int request, ...) void *argptr = arg; int zero = 0; - if (request == TIOCFLUSH && !arg) - arg = &zero; + if (request == TIOCFLUSH && !argptr) + argptr = &zero; /* Pack an argument into the message buffer. */ void in (unsigned int count, enum __ioctl_datum type) -- cgit 1.4.1