mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
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:
@@ -559,7 +559,7 @@ static getoption_T access_option_value(char *key, long *numval, char **stringval
|
||||
if (get) {
|
||||
return get_option_value(key, numval, stringval, NULL, opt_flags);
|
||||
} else {
|
||||
char *errmsg;
|
||||
const char *errmsg;
|
||||
if ((errmsg = set_option_value(key, *numval, *stringval, opt_flags))) {
|
||||
if (try_end(err)) {
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user