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.

This commit is contained in:
gmcgarry 2008-06-24 10:47:32 +00:00
parent 72b22f7c71
commit 838d34e828
1 changed files with 4 additions and 4 deletions

View File

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