aboutsummaryrefslogtreecommitdiff
path: root/src/if_cscope.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-26 17:31:13 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-26 18:29:17 -0300
commitf8432ef127c0d84bc89ef604dfd6b619acd89c3b (patch)
tree9452aa3b53d877517585166c2cebaaef8606c41e /src/if_cscope.c
parent580ababcb5b822aaf938defa38a0ffd5511f0d65 (diff)
downloadrneovim-f8432ef127c0d84bc89ef604dfd6b619acd89c3b.tar.gz
rneovim-f8432ef127c0d84bc89ef604dfd6b619acd89c3b.tar.bz2
rneovim-f8432ef127c0d84bc89ef604dfd6b619acd89c3b.zip
Use realloc instead of vim_realloc
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r--src/if_cscope.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index a6229529ea..85633db927 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -1330,7 +1330,7 @@ static int cs_insert_filelist(char *fname, char *ppath, char *flags, struct stat
} else {
/* Reallocate space for more connections. */
csinfo_size *= 2;
- csinfo = vim_realloc(csinfo, sizeof(csinfo_T)*csinfo_size);
+ csinfo = realloc(csinfo, sizeof(csinfo_T)*csinfo_size);
}
if (csinfo == NULL)
return -1;
@@ -1870,7 +1870,7 @@ static void cs_print_tags_priv(char **matches, char **cntxts, int num_matches)
/* hopefully 'num' (num of matches) will be less than 10^16 */
newsize = (int)(strlen(csfmt_str) + 16 + strlen(lno));
if (bufsize < newsize) {
- buf = (char *)vim_realloc(buf, newsize);
+ buf = (char *)realloc(buf, newsize);
if (buf == NULL)
bufsize = 0;
else
@@ -1891,7 +1891,7 @@ static void cs_print_tags_priv(char **matches, char **cntxts, int num_matches)
newsize = (int)(strlen(context) + strlen(cntxformat));
if (bufsize < newsize) {
- buf = (char *)vim_realloc(buf, newsize);
+ buf = (char *)realloc(buf, newsize);
if (buf == NULL)
bufsize = 0;
else