aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/module.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2001-06-19 21:40:14 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2001-06-19 21:40:14 +0000
commit4ee5ccb6072bedde5e146f78a4ba86be4bf3d2a7 (patch)
tree973aaa5874c9d3b7ea3ee4614d7f6708842a5220 /sys/sys/module.h
parent18379cf918fe6e7c85c9320069509caf4210a240 (diff)
downloadsrc-4ee5ccb6072bedde5e146f78a4ba86be4bf3d2a7.tar.gz
src-4ee5ccb6072bedde5e146f78a4ba86be4bf3d2a7.zip
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
Notes
Notes: svn path=/head/; revision=78478
Diffstat (limited to 'sys/sys/module.h')
-rw-r--r--sys/sys/module.h4
1 files 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