From 498e022384b36d737370210a3649e7ba93137da0 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 19 Jun 2001 21:40:14 +0000 Subject: [PATCH] Constify the module name. This silences a few warnings ("initialization discards qualifier"), and probably adds a few where module names are compared to or passed as non-const strings. Not-objected-to-by: bde --- sys/sys/module.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/module.h b/sys/sys/module.h index e5f0547b56d8..285126fe4d19 100644 --- a/sys/sys/module.h +++ b/sys/sys/module.h @@ -55,7 +55,7 @@ typedef int (*modeventhand_t)(module_t mod, int /*modeventtype_t*/ what, * Struct for registering modules statically via SYSINIT. */ typedef struct moduledata { - char *name; /* module name */ + const char *name; /* module name */ modeventhand_t evhand; /* event handler */ void *priv; /* extra data */ } moduledata_t; @@ -91,7 +91,7 @@ struct mod_metadata { int md_version; /* structure version MDTV_* */ int md_type; /* type of entry MDT_* */ void *md_data; /* specific data */ - char *md_cval; /* common string label */ + const char *md_cval; /* common string label */ }; #ifdef _KERNEL