aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/if_cscope.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-08-24 22:49:25 +0100
committerLewis Russell <lewis6991@gmail.com>2022-08-25 13:10:41 +0100
commit93f24403f8cc760ff47979c596976b53a8b16358 (patch)
tree93d2d2879aba8d563fde484d1fae5864b18134bc /src/nvim/if_cscope.c
parent1b29288709e75064b9188420d46e1028d7ee341e (diff)
downloadrneovim-93f24403f8cc760ff47979c596976b53a8b16358.tar.gz
rneovim-93f24403f8cc760ff47979c596976b53a8b16358.tar.bz2
rneovim-93f24403f8cc760ff47979c596976b53a8b16358.zip
refactor: pre-incr to post-incr
Diffstat (limited to 'src/nvim/if_cscope.c')
-rw-r--r--src/nvim/if_cscope.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c
index 689d1fce0d..9d3b2b0455 100644
--- a/src/nvim/if_cscope.c
+++ b/src/nvim/if_cscope.c
@@ -900,7 +900,7 @@ static int cs_find(exarg_T *eap)
* Let's replace the NULs written by strtok() with spaces - we need the
* spaces to correctly display the quickfix/location list window's title.
*/
- for (int i = 0; i < eap_arg_len; ++i) {
+ for (int i = 0; i < eap_arg_len; i++) {
if (NUL == eap->arg[i]) {
eap->arg[i] = ' ';
}
@@ -1838,7 +1838,7 @@ static void cs_release_csp(size_t i, bool freefnpp)
// Can't use sigaction(), loop for two seconds. First yield the CPU
// to give cscope a chance to exit quickly.
sleep(0);
- for (waited = 0; waited < 40; ++waited) {
+ for (waited = 0; waited < 40; waited++) {
pid = waitpid(csinfo[i].pid, &pstat, WNOHANG);
waitpid_errno = errno;
if (pid != 0) {