summaryrefslogtreecommitdiff
path: root/src/sign.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sign.c')
-rw-r--r--src/sign.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sign.c b/src/sign.c
index 9766d4e75..b89bea073 100644
--- a/src/sign.c
+++ b/src/sign.c
@@ -85,7 +85,7 @@ sign_group_ref(char_u *groupname)
if (HASHITEM_EMPTY(hi))
{
// new group
- group = (signgroup_T *)alloc(sizeof(signgroup_T) + STRLEN(groupname));
+ group = alloc(sizeof(signgroup_T) + STRLEN(groupname));
if (group == NULL)
return NULL;
STRCPY(group->sg_name, groupname);
@@ -201,8 +201,7 @@ insert_sign(
{
signlist_T *newsign;
- newsign = (signlist_T *)lalloc_id(sizeof(signlist_T), FALSE,
- aid_insert_sign);
+ newsign = lalloc_id(sizeof(signlist_T), FALSE, aid_insert_sign);
if (newsign != NULL)
{
newsign->id = id;
@@ -736,7 +735,7 @@ alloc_new_sign(char_u *name)
int start = next_sign_typenr;
// Allocate a new sign.
- sp = (sign_T *)alloc_clear_id(sizeof(sign_T), aid_sign_define_by_name);
+ sp = alloc_clear_id(sizeof(sign_T), aid_sign_define_by_name);
if (sp == NULL)
return NULL;