diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-10-15 18:17:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-15 18:17:07 +0200 |
commit | d4841e24dac9a16b8b90b212df20872badc4468e (patch) | |
tree | 921d79e13daf44adbfbc5585f7dc405b6429ed19 /src/nvim/quickfix.c | |
parent | 0434f732a696248c24e111b558406f9534db6ca3 (diff) | |
parent | 04cdea5f4ac49fa62cc4091a5c26791b80b4cc4c (diff) | |
download | rneovim-d4841e24dac9a16b8b90b212df20872badc4468e.tar.gz rneovim-d4841e24dac9a16b8b90b212df20872badc4468e.tar.bz2 rneovim-d4841e24dac9a16b8b90b212df20872badc4468e.zip |
Merge pull request #20140 from dundargoc/refactor/char_u/12
refactor: replace char_u with char 12: remove `STRLEN` part 2
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index a65635cf5e..2d8100595f 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3983,7 +3983,7 @@ static int qf_buf_add_line(qf_list_T *qfl, buf_T *buf, linenr_T lnum, const qfli } if (ml_append_buf(buf, lnum, (char_u *)IObuff, - (colnr_T)STRLEN(IObuff) + 1, false) == FAIL) { + (colnr_T)strlen(IObuff) + 1, false) == FAIL) { return FAIL; } return OK; @@ -4239,7 +4239,7 @@ static char *make_get_fullcmd(const char *makecmd, const char *fname) len += strlen(p_sp) + strlen(fname) + 3; } char *const cmd = xmalloc(len); - snprintf(cmd, len, "%s%s%s", (char *)p_shq, (char *)makecmd, (char *)p_shq); + snprintf(cmd, len, "%s%s%s", p_shq, (char *)makecmd, p_shq); // If 'shellpipe' empty: don't redirect to 'errorfile'. if (*p_sp != NUL) { @@ -5284,7 +5284,7 @@ static bool existing_swapfile(const buf_T *buf) { if (buf->b_ml.ml_mfp != NULL && buf->b_ml.ml_mfp->mf_fname != NULL) { const char *const fname = buf->b_ml.ml_mfp->mf_fname; - const size_t len = STRLEN(fname); + const size_t len = strlen(fname); return fname[len - 1] != 'p' || fname[len - 2] != 'w'; } |