diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2015-07-10 11:01:30 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2015-07-10 11:01:30 +0000 |
commit | 5fe97c20dcd2e42bb93835adab68174ad5e691f6 (patch) | |
tree | bd9f2571a32c9b100987261c39476143e32011ee /sys/compat | |
parent | 85237e335d916fa207e03aea519d4b29f6baed2a (diff) | |
download | src-5fe97c20dcd2e42bb93835adab68174ad5e691f6.tar.gz src-5fe97c20dcd2e42bb93835adab68174ad5e691f6.zip |
fd: split kern_dup flags argument into actual flags and a mode
Tidy up the code inside to switch on the mode.
Notes
Notes:
svn path=/head/; revision=285356
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/cloudabi/cloudabi_fd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/cloudabi/cloudabi_fd.c b/sys/compat/cloudabi/cloudabi_fd.c index 5ac9015e7785..01596ccf54cf 100644 --- a/sys/compat/cloudabi/cloudabi_fd.c +++ b/sys/compat/cloudabi/cloudabi_fd.c @@ -97,7 +97,7 @@ cloudabi_sys_fd_replace(struct thread *td, * clear the return value, as this system call yields no return * value. */ - error = kern_dup(td, FDDUP_MUSTREPLACE, uap->from, uap->to); + error = kern_dup(td, FDDUP_MUSTREPLACE, 0, uap->from, uap->to); td->td_retval[0] = 0; return (error); } |