Source-Changes-HG archive

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

[src/trunk]: src/sys make iftovt_tab[] const



details:   https://anonhg.NetBSD.org/src/rev/bca0dc2c9165
branches:  trunk
changeset: 543460:bca0dc2c9165
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Feb 25 23:01:39 2003 +0000

description:
make iftovt_tab[] const

diffstat:

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

diffs (45 lines):

diff -r 5b851528e492 -r bca0dc2c9165 sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c       Tue Feb 25 22:17:47 2003 +0000
+++ b/sys/kern/vfs_subr.c       Tue Feb 25 23:01:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_subr.c,v 1.188 2003/02/18 20:37:38 jdolecek Exp $  */
+/*     $NetBSD: vfs_subr.c,v 1.189 2003/02/25 23:01:40 jdolecek Exp $  */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.188 2003/02/18 20:37:38 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_subr.c,v 1.189 2003/02/25 23:01:40 jdolecek Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -119,7 +119,7 @@
 
 #include <sys/sysctl.h>
 
-enum vtype iftovt_tab[16] = {
+const enum vtype iftovt_tab[16] = {
        VNON, VFIFO, VCHR, VNON, VDIR, VNON, VBLK, VNON,
        VREG, VNON, VLNK, VNON, VSOCK, VNON, VNON, VBAD,
 };
diff -r 5b851528e492 -r bca0dc2c9165 sys/sys/vnode.h
--- a/sys/sys/vnode.h   Tue Feb 25 22:17:47 2003 +0000
+++ b/sys/sys/vnode.h   Tue Feb 25 23:01:39 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode.h,v 1.103 2003/02/05 21:38:43 pk Exp $   */
+/*     $NetBSD: vnode.h,v 1.104 2003/02/25 23:01:39 jdolecek Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -241,7 +241,7 @@
  * Convert between vnode types and inode formats (since POSIX.1
  * defines mode word of stat structure in terms of inode formats).
  */
-extern enum vtype      iftovt_tab[];
+extern const enum vtype        iftovt_tab[];
 extern const int       vttoif_tab[];
 #define        IFTOVT(mode)    (iftovt_tab[((mode) & S_IFMT) >> 12])
 #define        VTTOIF(indx)    (vttoif_tab[(int)(indx)])



Home | Main Index | Thread Index | Old Index