make nmountcompatnames unsigned (assigned from __arraycount, compared with

unsigned in compat code)
This commit is contained in:
christos 2019-09-26 01:34:16 +00:00
parent 3138343282
commit fc72d154af
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_syscalls.c,v 1.536 2019/09/22 22:59:39 christos Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.537 2019/09/26 01:34:16 christos Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.536 2019/09/22 22:59:39 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.537 2019/09/26 01:34:16 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_fileassoc.h"
@ -163,7 +163,7 @@ const char * const mountcompatnames[] = {
MOUNT_AFS, /* 9 */
};
const int nmountcompatnames = __arraycount(mountcompatnames);
const u_int nmountcompatnames = __arraycount(mountcompatnames);
static int
fd_nameiat(struct lwp *l, int fdat, struct nameidata *ndp)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_syscalls.h,v 1.25 2019/06/20 03:31:54 kamil Exp $ */
/* $NetBSD: vfs_syscalls.h,v 1.26 2019/09/26 01:34:16 christos Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@ -85,6 +85,6 @@ int chdir_lookup(const char *, int, struct vnode **, struct lwp *);
void change_root(struct cwdinfo *, struct vnode *, struct lwp *);
extern const char *const mountcompatnames[];
extern const int nmountcompatnames;
extern const u_int nmountcompatnames;
#endif /* _SYS_VFS_SYSCALLS_H_ */