kill MFSNAMELEN
This commit is contained in:
parent
18754a7640
commit
35cb28e6eb
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: osf1_cvt.c,v 1.22 2007/06/16 20:04:28 dsl Exp $ */
|
||||
/* $NetBSD: osf1_cvt.c,v 1.23 2007/07/17 20:41:23 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
|
||||
@ -58,7 +58,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.22 2007/06/16 20:04:28 dsl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.23 2007/07/17 20:41:23 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -627,11 +627,11 @@ osf1_cvt_statfs_from_native(bsfs, osfs)
|
||||
{
|
||||
|
||||
memset(osfs, 0, sizeof (struct osf1_statfs));
|
||||
if (!strncmp(MOUNT_FFS, bsfs->f_fstypename, MFSNAMELEN))
|
||||
if (!strncmp(MOUNT_FFS, bsfs->f_fstypename, sizeof(bsfs->fs_fstypename)))
|
||||
osfs->f_type = OSF1_MOUNT_UFS;
|
||||
else if (!strncmp(MOUNT_NFS, bsfs->f_fstypename, MFSNAMELEN))
|
||||
else if (!strncmp(MOUNT_NFS, bsfs->f_fstypename, sizeof(bsfs->fs_fstypename)))
|
||||
osfs->f_type = OSF1_MOUNT_NFS;
|
||||
else if (!strncmp(MOUNT_MFS, bsfs->f_fstypename, MFSNAMELEN))
|
||||
else if (!strncmp(MOUNT_MFS, bsfs->f_fstypename, sizeof(bsfs->fs_fstypename)))
|
||||
osfs->f_type = OSF1_MOUNT_MFS;
|
||||
else
|
||||
/* uh oh... XXX = PC, CDFS, PROCFS, etc. */
|
||||
|
Loading…
Reference in New Issue
Block a user