~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to parse_be.c

  • Committer: Matthew Fuller
  • Date: 2016-05-28 06:24:19 UTC
  • mto: This revision was merged to the branch mainline in revision 492.
  • Revision ID: fullermd@over-yonder.net-20160528062419-haucmys30w8g471d
Stop casting return values of [mc]alloc().  void * has existed for 27
years now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1636
1636
{
1637
1637
        Cptr cptrav, cpnew;
1638
1638
        if(!chead) {
1639
 
                chead = (Cptr)malloc(sizeof(Cnode));
 
1639
                chead = malloc(sizeof(Cnode));
1640
1640
                chead->i = key;
1641
1641
                chead->next = NULL;
1642
1642
        }
1645
1645
                while(cptrav->next != NULL) {
1646
1646
                        cptrav = cptrav->next;
1647
1647
                }
1648
 
                cpnew = (Cptr)malloc(sizeof(Cnode));
 
1648
                cpnew = malloc(sizeof(Cnode));
1649
1649
                cpnew->i = key;
1650
1650
                cpnew->next = NULL;
1651
1651
                cptrav->next = cpnew;
1883
1883
 
1884
1884
        if(HasShape) {
1885
1885
                SqueezeInfo *sinfo;
1886
 
                sinfo = (SqueezeInfo *) malloc(sizeof(SqueezeInfo));
 
1886
                sinfo = malloc(sizeof(SqueezeInfo));
1887
1887
 
1888
1888
                if(!sinfo) {
1889
1889
                        twmrc_error_prefix();