summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse.c b/src/parse.c
index 53cca49..6ae9685 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -992,13 +992,13 @@ do_var_savecolor(int key)
{
Cptr cptrav, cpnew;
if (!chead) {
- chead = (Cptr)malloc(sizeof(Cnode));
+ chead = malloc(sizeof(Cnode));
chead->i = key; chead->next = NULL;
}
else {
cptrav = chead;
while (cptrav->next != NULL) { cptrav = cptrav->next; }
- cpnew = (Cptr)malloc(sizeof(Cnode));
+ cpnew = malloc(sizeof(Cnode));
cpnew->i = key; cpnew->next = NULL; cptrav->next = cpnew;
}
}
@@ -1107,7 +1107,7 @@ do_squeeze_entry (name_list **list, char *name, int justify, int num, int denom)
if (HasShape) {
SqueezeInfo *sinfo;
- sinfo = (SqueezeInfo *) malloc (sizeof(SqueezeInfo));
+ sinfo = malloc (sizeof(SqueezeInfo));
if (!sinfo) {
twmrc_error_prefix();