summaryrefslogtreecommitdiffstats
path: root/sys/sys/module.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-06-19 21:40:14 +0000
committerdes <des@FreeBSD.org>2001-06-19 21:40:14 +0000
commit498e022384b36d737370210a3649e7ba93137da0 (patch)
tree973aaa5874c9d3b7ea3ee4614d7f6708842a5220 /sys/sys/module.h
parentce5986e7e88ddfd3d3c7c6c406bc76906d5a4c03 (diff)
downloadFreeBSD-src-498e022384b36d737370210a3649e7ba93137da0.zip
FreeBSD-src-498e022384b36d737370210a3649e7ba93137da0.tar.gz
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
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 e5f0547..285126f 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
OpenPOWER on IntegriCloud