From: Samuel Thibault Date: Mon, 1 Feb 2021 19:00:18 +0000 (+0100) Subject: hurd TIOCFLUSH: fix fixing argument X-Git-Tag: glibc-2.34~996 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd4405747c18463aad98877f277ab5d6eb54f78f;p=thirdparty%2Fglibc.git hurd TIOCFLUSH: fix fixing argument The argument actually used inside send_rpc is argptr, not arg. --- diff --git a/sysdeps/mach/hurd/ioctl.c b/sysdeps/mach/hurd/ioctl.c index 0d5bc176d10..ed5de1332f4 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)