Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys make nmountcompatnames unsigned (assigned from __arrayco...



details:   https://anonhg.NetBSD.org/src/rev/35e1a2f6550e
branches:  trunk
changeset: 454708:35e1a2f6550e
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 26 01:34:16 2019 +0000

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

diffstat:

 sys/kern/vfs_syscalls.c |  6 +++---
 sys/sys/vfs_syscalls.h  |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 76015a9cec44 -r 35e1a2f6550e sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Thu Sep 26 01:32:09 2019 +0000
+++ b/sys/kern/vfs_syscalls.c   Thu Sep 26 01:34:16 2019 +0000
@@ -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 @@
        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)
diff -r 76015a9cec44 -r 35e1a2f6550e sys/sys/vfs_syscalls.h
--- a/sys/sys/vfs_syscalls.h    Thu Sep 26 01:32:09 2019 +0000
+++ b/sys/sys/vfs_syscalls.h    Thu Sep 26 01:34:16 2019 +0000
@@ -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 @@
 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_ */



Home | Main Index | Thread Index | Old Index