1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-12 19:04:54 +03:00

hurd TIOCFLUSH: fix fixing argument

The argument actually used inside send_rpc is argptr, not arg.
This commit is contained in:
Samuel Thibault
2021-02-01 20:00:18 +01:00
parent 6c57d32048
commit fd4405747c

View File

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