diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-12-01 10:34:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 21:34:33 -0500 |
commit | 36565c9da227f6da68e3bd3a1232ac17dd994ea1 (patch) | |
tree | 1e43923ec73369e7ce1b263ee7a7c1441a6c22b6 /src | |
parent | 730a9514dcf540c4921bbe45c1c8849f773bae39 (diff) | |
download | rneovim-36565c9da227f6da68e3bd3a1232ac17dd994ea1.tar.gz rneovim-36565c9da227f6da68e3bd3a1232ac17dd994ea1.tar.bz2 rneovim-36565c9da227f6da68e3bd3a1232ac17dd994ea1.zip |
vim-patch:8.2.2350: using "void" for no reason (#16410)
Problem: Using "void" for no reason.
Solution: Use "char *".
https://github.com/vim/vim/commit/033135eb8eccd00c9ee72c6c0cf4b8b9f81bd269
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 62919c98f7..284f8a9ab5 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -818,7 +818,7 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline, void *cookie, int flags) // of interrupts or errors to exceptions, and ensure that no more // commands are executed. if (current_exception) { - void *p = NULL; + char *p = NULL; char_u *saved_sourcing_name; int saved_sourcing_lnum; struct msglist *messages = NULL; @@ -835,7 +835,7 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline, void *cookie, int flags) vim_snprintf((char *)IObuff, IOSIZE, _("E605: Exception not caught: %s"), current_exception->value); - p = vim_strsave(IObuff); + p = (char *)vim_strsave(IObuff); break; case ET_ERROR: messages = current_exception->messages; |