diff --git a/src/main/module.h b/src/main/module.h index 1dc8c034..fe89608f 100644 --- a/src/main/module.h +++ b/src/main/module.h @@ -13,7 +13,7 @@ extern "C" { struct module { /* The name of the module. It needs to be unique in its class (ie. in * the scope of root modules or submodules of one parent module). */ - char *name; + const char *name; /* The options that should be registered for this module. * The table should end with NULL_OPTION_INFO. */ diff --git a/src/mime/backend/common.c b/src/mime/backend/common.c index eeceb596..9407622f 100644 --- a/src/mime/backend/common.c +++ b/src/mime/backend/common.c @@ -106,7 +106,7 @@ get_next_path_filename(char **path_ptr, unsigned char separator) struct mime_handler * init_mime_handler(char *program, char *description, - char *backend_name, int ask, int block) + const char *backend_name, int ask, int block) { int programlen = strlen(program); struct mime_handler *handler; diff --git a/src/mime/backend/common.h b/src/mime/backend/common.h index c3e29576..49dba5cb 100644 --- a/src/mime/backend/common.h +++ b/src/mime/backend/common.h @@ -31,7 +31,7 @@ get_next_path_filename(char **path_ptr, unsigned char separator); struct mime_handler * init_mime_handler(char *program, char *description, - char *backend_name, int ask, int block); + const char *backend_name, int ask, int block); #ifdef __cplusplus } diff --git a/src/mime/mime.h b/src/mime/mime.h index 452c5ee2..2f042a58 100644 --- a/src/mime/mime.h +++ b/src/mime/mime.h @@ -12,7 +12,7 @@ struct uri; struct mime_handler { char *description; - char *backend_name; + const char *backend_name; unsigned int ask:1; unsigned int block:1; unsigned int copiousoutput:1;