Source-Changes-HG archive

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

[src/trunk]: src/sys/sys make lkm_name in struct lkm_* a const



details:   https://anonhg.NetBSD.org/src/rev/ab38065e7179
branches:  trunk
changeset: 485669:ab38065e7179
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue May 02 22:13:20 2000 +0000

description:
make lkm_name in struct lkm_* a const

diffstat:

 sys/sys/lkm.h |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 154c3951af0e -r ab38065e7179 sys/sys/lkm.h
--- a/sys/sys/lkm.h     Tue May 02 19:03:02 2000 +0000
+++ b/sys/sys/lkm.h     Tue May 02 22:13:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lkm.h,v 1.17 1999/01/13 23:06:28 sommerfe Exp $        */
+/*     $NetBSD: lkm.h,v 1.18 2000/05/02 22:13:20 jdolecek Exp $        */
 
 /*
  * Header file used by loadable kernel modules and loadable kernel module
@@ -67,7 +67,7 @@
 struct lkm_syscall {
        MODTYPE lkm_type;
        int     lkm_ver;
-       char    *lkm_name;
+       const char *lkm_name;
        u_long  lkm_offset;             /* save/assign area */
        struct sysent   *lkm_sysent;
        struct sysent   lkm_oldent;     /* save area for unload */
@@ -79,7 +79,7 @@
 struct lkm_vfs {
        MODTYPE lkm_type;
        int     lkm_ver;
-       char    *lkm_name;
+       const char *lkm_name;
        u_long  lkm_offset;
        struct vfsops   *lkm_vfsops;
 };
@@ -98,7 +98,7 @@
 struct lkm_dev {
        MODTYPE lkm_type;
        int     lkm_ver;
-       char    *lkm_name;
+       const char *lkm_name;
        u_long  lkm_offset;
        DEVTYPE lkm_devtype;
        union {
@@ -118,7 +118,7 @@
 struct lkm_strmod {
        MODTYPE lkm_type;
        int     lkm_ver;
-       char    *lkm_name;
+       const char *lkm_name;
        u_long  lkm_offset;
        /*
         * Removed: future release
@@ -131,7 +131,7 @@
 struct lkm_exec {
        MODTYPE lkm_type;
        int     lkm_ver;
-       char    *lkm_name;
+       const char *lkm_name;
        u_long  lkm_offset;
        struct execsw   *lkm_exec;
        struct execsw   lkm_oldexec;



Home | Main Index | Thread Index | Old Index