diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-02-01 20:00:18 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-02-01 20:01:34 +0100 |
commit | fd4405747c18463aad98877f277ab5d6eb54f78f (patch) | |
tree | 4212977ab0b8086adaff6b32bdcede67f7530f54 | |
parent | 6c57d320484988e87e446e2e60ce42816bf51d53 (diff) | |
download | glibc-fd4405747c18463aad98877f277ab5d6eb54f78f.tar.gz glibc-fd4405747c18463aad98877f277ab5d6eb54f78f.tar.xz glibc-fd4405747c18463aad98877f277ab5d6eb54f78f.zip |
hurd TIOCFLUSH: fix fixing argument
The argument actually used inside send_rpc is argptr, not arg.
-rw-r--r-- | sysdeps/mach/hurd/ioctl.c | 4 |
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) |