The mode for a node is a mode_t in both struct stat and struct vattr -

don't use a u_short for intermediate storage in vn_stat.
This commit is contained in:
wrstuden 1999-03-30 00:16:44 +00:00
parent eb10774f2b
commit bd2d8363bc
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_vnops.c,v 1.34 1999/03/25 00:20:35 sommerfe Exp $ */
/* $NetBSD: vfs_vnops.c,v 1.35 1999/03/30 00:16:44 wrstuden Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -416,7 +416,7 @@ vn_stat(vp, sb, p)
{
struct vattr va;
int error;
u_short mode;
mode_t mode;
error = VOP_GETATTR(vp, &va, p->p_ucred, p);
if (error)