refactor: make error message definitions const

message.c functions now take const char * as a format. Error message
definitions can be made const.
This commit is contained in:
ii14
2023-04-05 21:13:53 +02:00
committed by GitHub
parent 2612930a09
commit 371823d407
37 changed files with 376 additions and 372 deletions

View File

@@ -2753,7 +2753,7 @@ void text_locked_msg(void)
emsg(_(get_text_locked_msg()));
}
char *get_text_locked_msg(void)
const char *get_text_locked_msg(void)
{
if (cmdwin_type != 0) {
return e_cmdwin;
@@ -4274,7 +4274,7 @@ void cmdline_init(void)
/// Check value of 'cedit' and set cedit_key.
/// Returns NULL if value is OK, error message otherwise.
char *check_cedit(void)
const char *check_cedit(void)
{
if (*p_cedit == NUL) {
cedit_key = -1;