aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2023-04-05 21:13:53 +0200
committerGitHub <noreply@github.com>2023-04-05 21:13:53 +0200
commit371823d407d7d7519735131bcad4670c62a731a7 (patch)
treeb303ffd5d01f6bcb447b0c783de294dd3bac4914 /src/nvim/fileio.c
parent2612930a092736a2f507e06475634346582f8ae1 (diff)
downloadrneovim-371823d407d7d7519735131bcad4670c62a731a7.tar.gz
rneovim-371823d407d7d7519735131bcad4670c62a731a7.tar.bz2
rneovim-371823d407d7d7519735131bcad4670c62a731a7.zip
refactor: make error message definitions const
message.c functions now take const char * as a format. Error message definitions can be made const.
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 684658b4e3..cbb378b4b6 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -134,8 +134,8 @@ static char *err_readonly = "is read-only (cannot override: \"W\" in 'cpoptions'
# include "fileio.c.generated.h"
#endif
-static char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name");
-static char e_no_matching_autocommands_for_buftype_str_buffer[]
+static const char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name");
+static const char e_no_matching_autocommands_for_buftype_str_buffer[]
= N_("E676: No matching autocommands for buftype=%s buffer");
void filemess(buf_T *buf, char *name, char *s, int attr)