vim-patch:8.2.2350: using "void" for no reason (#16410)

Problem:    Using "void" for no reason.
Solution:   Use "char *".
033135eb8e
This commit is contained in:
zeertzjq 2021-12-01 10:34:33 +08:00 committed by GitHub
parent 730a9514dc
commit 36565c9da2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 // of interrupts or errors to exceptions, and ensure that no more
// commands are executed. // commands are executed.
if (current_exception) { if (current_exception) {
void *p = NULL; char *p = NULL;
char_u *saved_sourcing_name; char_u *saved_sourcing_name;
int saved_sourcing_lnum; int saved_sourcing_lnum;
struct msglist *messages = NULL; 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, vim_snprintf((char *)IObuff, IOSIZE,
_("E605: Exception not caught: %s"), _("E605: Exception not caught: %s"),
current_exception->value); current_exception->value);
p = vim_strsave(IObuff); p = (char *)vim_strsave(IObuff);
break; break;
case ET_ERROR: case ET_ERROR:
messages = current_exception->messages; messages = current_exception->messages;