aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testing.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-09 15:37:34 +0100
committerGitHub <noreply@github.com>2023-01-09 22:37:34 +0800
commit50f03773f4b9f4638489ccfd0503dc9e39e5de78 (patch)
tree2471c7596d233b66cacc36986bea0a31e9ba96ea /src/nvim/testing.c
parent9cd7edc6ad884f59b0be9dda3523ff88f4dca705 (diff)
downloadrneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.tar.gz
rneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.tar.bz2
rneovim-50f03773f4b9f4638489ccfd0503dc9e39e5de78.zip
refactor: replace char_u with char 18 (#21237)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/testing.c')
-rw-r--r--src/nvim/testing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/testing.c b/src/nvim/testing.c
index 8c54d9ad32..edb24c6dc5 100644
--- a/src/nvim/testing.c
+++ b/src/nvim/testing.c
@@ -394,12 +394,12 @@ static int assert_equalfile(typval_T *argvars)
char line2[200];
ptrdiff_t lineidx = 0;
if (fd1 == NULL) {
- snprintf((char *)IObuff, IOSIZE, (char *)e_notread, fname1);
+ snprintf(IObuff, IOSIZE, (char *)e_notread, fname1);
} else {
FILE *const fd2 = os_fopen(fname2, READBIN);
if (fd2 == NULL) {
fclose(fd1);
- snprintf((char *)IObuff, IOSIZE, (char *)e_notread, fname2);
+ snprintf(IObuff, IOSIZE, (char *)e_notread, fname2);
} else {
int64_t linecount = 1;
for (int64_t count = 0;; count++) {
@@ -418,7 +418,7 @@ static int assert_equalfile(typval_T *argvars)
line2[lineidx] = (char)c2;
lineidx++;
if (c1 != c2) {
- snprintf((char *)IObuff, IOSIZE,
+ snprintf(IObuff, IOSIZE,
"difference at byte %" PRId64 ", line %" PRId64,
count, linecount);
break;
@@ -445,7 +445,7 @@ static int assert_equalfile(typval_T *argvars)
xfree(tofree);
ga_concat(&ga, ": ");
}
- ga_concat(&ga, (char *)IObuff);
+ ga_concat(&ga, IObuff);
if (lineidx > 0) {
line1[lineidx] = NUL;
line2[lineidx] = NUL;