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
This commit is contained in:
Dag-Erling Smørgrav 2001-06-19 21:40:14 +00:00
parent 18379cf918
commit 4ee5ccb607

View File

@ -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