summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorgmcgarry <gmcgarry@NetBSD.org>2008-06-24 10:47:32 +0000
committergmcgarry <gmcgarry@NetBSD.org>2008-06-24 10:47:32 +0000
commit838d34e8282c879dbbadcf60585c73d02207dca3 (patch)
treedeaa2789a04931de9f7c1a32566695772cf9184c /sys
parent72b22f7c7181b61fb24516ad025dc8e04f6b96c2 (diff)
fcntl(4) says the command is type int. lfs_fcntl() comment says u_long. The implementation says int. Synchronise comment with documentation and cast to int before comparison.
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/lfs/lfs_vnops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ufs/lfs/lfs_vnops.c b/sys/ufs/lfs/lfs_vnops.c
index 748364d5451..6d1793d04dd 100644
--- a/sys/ufs/lfs/lfs_vnops.c
+++ b/sys/ufs/lfs/lfs_vnops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vnops.c,v 1.217 2008/06/04 12:41:40 ad Exp $ */
+/* $NetBSD: lfs_vnops.c,v 1.218 2008/06/24 10:47:32 gmcgarry Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.217 2008/06/04 12:41:40 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vnops.c,v 1.218 2008/06/24 10:47:32 gmcgarry Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -1425,7 +1425,7 @@ lfs_fcntl(void *v)
{
struct vop_fcntl_args /* {
struct vnode *a_vp;
- u_long a_command;
+ u_int a_command;
void * a_data;
int a_fflag;
kauth_cred_t a_cred;
@@ -1466,7 +1466,7 @@ lfs_fcntl(void *v)
fsidp = &ap->a_vp->v_mount->mnt_stat.f_fsidx;
error = 0;
- switch (ap->a_command) {
+ switch ((int)ap->a_command) {
case LFCNSEGWAITALL:
case LFCNSEGWAITALL_COMPAT:
fsidp = NULL;