Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/miscfs/kernfs Update from trunk:
details: https://anonhg.NetBSD.org/src/rev/5f86db5e1001
branches: netbsd-1-5
changeset: 488523:5f86db5e1001
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jul 14 18:11:56 2000 +0000
description:
Update from trunk:
Sprinkle some const.
diffstat:
sys/miscfs/kernfs/kernfs.h | 4 ++--
sys/miscfs/kernfs/kernfs_vnops.c | 10 +++++++---
2 files changed, 9 insertions(+), 5 deletions(-)
diffs (49 lines):
diff -r 5e9110f3cc0d -r 5f86db5e1001 sys/miscfs/kernfs/kernfs.h
--- a/sys/miscfs/kernfs/kernfs.h Fri Jul 14 18:10:49 2000 +0000
+++ b/sys/miscfs/kernfs/kernfs.h Fri Jul 14 18:11:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs.h,v 1.12 1998/03/01 02:21:04 fvdl Exp $ */
+/* $NetBSD: kernfs.h,v 1.12.24.1 2000/07/14 18:11:56 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -48,7 +48,7 @@
struct kern_target {
u_char kt_type;
u_char kt_namlen;
- char *kt_name;
+ const char *kt_name;
void *kt_data;
#define KTT_NULL 1
#define KTT_TIME 5
diff -r 5e9110f3cc0d -r 5f86db5e1001 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c Fri Jul 14 18:10:49 2000 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c Fri Jul 14 18:11:56 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vnops.c,v 1.67 1999/08/25 14:42:35 sommerfeld Exp $ */
+/* $NetBSD: kernfs_vnops.c,v 1.67.12.1 2000/07/14 18:11:56 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -80,7 +80,9 @@
{ DT_DIR, N("."), 0, KTT_NULL, VDIR, DIR_MODE },
{ DT_DIR, N(".."), 0, KTT_NULL, VDIR, DIR_MODE },
{ DT_REG, N("boottime"), &boottime.tv_sec, KTT_INT, VREG, READ_MODE },
- { DT_REG, N("copyright"), copyright, KTT_STRING, VREG, READ_MODE },
+ /* XXX cast away const */
+ { DT_REG, N("copyright"), (void *)copyright,
+ KTT_STRING, VREG, READ_MODE },
{ DT_REG, N("hostname"), 0, KTT_HOSTNAME, VREG, WRITE_MODE },
{ DT_REG, N("hz"), &hz, KTT_INT, VREG, READ_MODE },
{ DT_REG, N("loadavg"), 0, KTT_AVENRUN, VREG, READ_MODE },
@@ -93,7 +95,9 @@
{ DT_BLK, N("rootdev"), &rootdev, KTT_DEVICE, VBLK, READ_MODE },
{ DT_CHR, N("rrootdev"), &rrootdev, KTT_DEVICE, VCHR, READ_MODE },
{ DT_REG, N("time"), 0, KTT_TIME, VREG, READ_MODE },
- { DT_REG, N("version"), version, KTT_STRING, VREG, READ_MODE },
+ /* XXX cast away const */
+ { DT_REG, N("version"), (void *)version,
+ KTT_STRING, VREG, READ_MODE },
#undef N
};
static int nkern_targets = sizeof(kern_targets) / sizeof(kern_targets[0]);
Home |
Main Index |
Thread Index |
Old Index