commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd,commited] hurd TIOCFLUSH: fix fixing argument


From: Samuel Thibault
Subject: [hurd,commited] hurd TIOCFLUSH: fix fixing argument
Date: Mon, 1 Feb 2021 20:01:14 +0100

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)
-- 
2.30.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]