public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [hurd,commited] hurd TIOCFLUSH: fix fixing argument
@ 2021-02-01 19:01 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2021-02-01 19:01 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault, commit-hurd

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-01 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 19:01 [hurd,commited] hurd TIOCFLUSH: fix fixing argument Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).