diff options
author | 2019-07-22 16:43:10 +0000 | |
---|---|---|
committer | 2019-07-22 16:43:10 +0000 | |
commit | cae8c15268c7bdb96aa12d8dc75cc59537aec238 (patch) | |
tree | 8587a4d5bd0e63b044eeaae8e020e853656756fb | |
parent | Grab the vnode lock earlier in sys_getdents() since it could end up (diff) | |
download | wireguard-openbsd-cae8c15268c7bdb96aa12d8dc75cc59537aec238.tar.xz wireguard-openbsd-cae8c15268c7bdb96aa12d8dc75cc59537aec238.zip |
Correct minor style nit in sys_getdents() for consistency, missing parens around
return expression.
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index f6a3f33cbdd..9a59d467756 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls.c,v 1.324 2019/07/22 16:39:29 anton Exp $ */ +/* $OpenBSD: vfs_syscalls.c,v 1.325 2019/07/22 16:43:10 anton Exp $ */ /* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */ /* @@ -3004,7 +3004,7 @@ sys_getdents(struct proc *p, void *v, register_t *retval) buflen = SCARG(uap, buflen); if (buflen > INT_MAX) - return EINVAL; + return (EINVAL); if ((error = getvnode(p, SCARG(uap, fd), &fp)) != 0) return (error); if ((fp->f_flag & FREAD) == 0) { |