aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-02-01 20:00:18 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-02-01 20:01:34 +0100
commitfd4405747c18463aad98877f277ab5d6eb54f78f (patch)
tree4212977ab0b8086adaff6b32bdcede67f7530f54 /sysdeps
parent6c57d320484988e87e446e2e60ce42816bf51d53 (diff)
downloadglibc-fd4405747c18463aad98877f277ab5d6eb54f78f.tar
glibc-fd4405747c18463aad98877f277ab5d6eb54f78f.tar.gz
glibc-fd4405747c18463aad98877f277ab5d6eb54f78f.tar.bz2
glibc-fd4405747c18463aad98877f277ab5d6eb54f78f.zip
hurd TIOCFLUSH: fix fixing argument
The argument actually used inside send_rpc is argptr, not arg.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/ioctl.c4
1 files 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)