From 36a4fc1c2ffff22eb35db18365d49d6a24306a3f Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 14 Jan 2022 21:08:04 +0100 Subject: [PATCH] [module] name - const char * --- src/main/module.h | 2 +- src/mime/backend/common.c | 2 +- src/mime/backend/common.h | 2 +- src/mime/mime.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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;