summaryrefslogtreecommitdiffstats
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-24 19:39:03 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-24 19:39:03 +0200
commit18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced (patch)
tree408ad339f6b34876d2fa481ac61568c7739b1160 /src/quickfix.c
parent71de720c2c117137185a6fc233b35aab37f0d4bc (diff)
patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386
Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 46eae2dd28..69ffc9c286 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -540,7 +540,7 @@ parse_efm_option(char_u *efm)
while (efm[0] != NUL)
{
// Allocate a new eformat structure and put it at the end of the list
- fmt_ptr = (efm_T *)alloc_clear((unsigned)sizeof(efm_T));
+ fmt_ptr = (efm_T *)alloc_clear(sizeof(efm_T));
if (fmt_ptr == NULL)
goto parse_efm_error;
if (fmt_first == NULL) // first one
@@ -2141,7 +2141,7 @@ qf_alloc_stack(qfltype_T qfltype)
{
qf_info_T *qi;
- qi = (qf_info_T *)alloc_clear((unsigned)sizeof(qf_info_T));
+ qi = (qf_info_T *)alloc_clear(sizeof(qf_info_T));
if (qi != NULL)
{
qi->qf_refcount++;