summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 9eacdc9a96..02535ce201 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -258,7 +258,7 @@ add_buff(
len = MINIMAL_SIZE;
else
len = slen;
- p = (buffblock_T *)alloc(sizeof(buffblock_T) + len);
+ p = alloc(sizeof(buffblock_T) + len);
if (p == NULL)
return; /* no space, just forget it */
buf->bh_space = (int)(len - slen);
@@ -3730,7 +3730,7 @@ do_map(
/*
* Get here when adding a new entry to the maphash[] list or abbrlist.
*/
- mp = (mapblock_T *)alloc(sizeof(mapblock_T));
+ mp = ALLOC_ONE(mapblock_T);
if (mp == NULL)
{
retval = 4; /* no mem */
@@ -4374,7 +4374,7 @@ ExpandMappings(
if (round == 1)
{
- *file = (char_u **)alloc(count * sizeof(char_u *));
+ *file = ALLOC_MULT(char_u *, count);
if (*file == NULL)
return FAIL;
}