diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:28:21 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:28:21 -0700 |
commit | c2e232e6915356eba3edf2efea99720746694c52 (patch) | |
tree | 405691284d85ae87a5261b43c950d26af102d17a /src/parse.c | |
parent | 58f3c3b8d518786764f45ac2be1f1f0850129125 (diff) |
Stop casting return values from malloc & calloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 6 |
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(); |