Module Name:    src
Committed By:   christos
Date:           Thu Sep 26 01:34:16 UTC 2019

Modified Files:
        src/sys/kern: vfs_syscalls.c
        src/sys/sys: vfs_syscalls.h

Log Message:
make nmountcompatnames unsigned (assigned from __arraycount, compared with
unsigned in compat code)


To generate a diff of this commit:
cvs rdiff -u -r1.536 -r1.537 src/sys/kern/vfs_syscalls.c
cvs rdiff -u -r1.25 -r1.26 src/sys/sys/vfs_syscalls.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_syscalls.c
diff -u src/sys/kern/vfs_syscalls.c:1.536 src/sys/kern/vfs_syscalls.c:1.537
--- src/sys/kern/vfs_syscalls.c:1.536	Sun Sep 22 18:59:39 2019
+++ src/sys/kern/vfs_syscalls.c	Wed Sep 25 21:34:16 2019
@@ -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)

Index: src/sys/sys/vfs_syscalls.h
diff -u src/sys/sys/vfs_syscalls.h:1.25 src/sys/sys/vfs_syscalls.h:1.26
--- src/sys/sys/vfs_syscalls.h:1.25	Wed Jun 19 23:31:54 2019
+++ src/sys/sys/vfs_syscalls.h	Wed Sep 25 21:34:16 2019
@@ -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, stru
 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_ */

Reply via email to