diff options
author | ed <ed@FreeBSD.org> | 2011-11-19 06:35:15 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-19 06:35:15 +0000 |
commit | 9cedd4d52c52b7d4511fb969386e788a62e49b84 (patch) | |
tree | 5afd09d03606293b75fe136df777b33a9dfe8703 /sys/compat/svr4/svr4_fcntl.c | |
parent | f0a67116809a4da6e49f05917afce94700cdf014 (diff) | |
download | FreeBSD-src-9cedd4d52c52b7d4511fb969386e788a62e49b84.zip FreeBSD-src-9cedd4d52c52b7d4511fb969386e788a62e49b84.tar.gz |
Improve *access*() parameter name consistency.
The current code mixes the use of `flags' and `mode'. This is a bit
confusing, since the faccessat() function as a `flag' parameter to store
the AT_ flag.
Make this less confusing by using the same name as used in the POSIX
specification -- `amode'.
Diffstat (limited to 'sys/compat/svr4/svr4_fcntl.c')
-rw-r--r-- | sys/compat/svr4/svr4_fcntl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_fcntl.c b/sys/compat/svr4/svr4_fcntl.c index cbca7e2..b9d3ace 100644 --- a/sys/compat/svr4/svr4_fcntl.c +++ b/sys/compat/svr4/svr4_fcntl.c @@ -488,7 +488,7 @@ svr4_sys_access(td, uap) int error; CHECKALTEXIST(td, uap->path, &newpath); - error = kern_access(td, newpath, UIO_SYSSPACE, uap->flags); + error = kern_access(td, newpath, UIO_SYSSPACE, uap->amode); free(newpath, M_TEMP); return (error); } |