~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to session.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:
564
564
        unsigned char byte;
565
565
        int i;
566
566
 
567
 
        *pentry = entry = (TWMWinConfigEntry *) malloc(
568
 
                                  sizeof(TWMWinConfigEntry));
 
567
        *pentry = entry = malloc(sizeof(TWMWinConfigEntry));
569
568
        if(!*pentry) {
570
569
                return 0;
571
570
        }
1046
1045
        prop1.name = SmRestartCommand;
1047
1046
        prop1.type = SmLISTofARRAY8;
1048
1047
 
1049
 
        prop1.vals = (SmPropValue *) malloc(
1050
 
                             (Argc + 4) * sizeof(SmPropValue));
 
1048
        prop1.vals = malloc((Argc + 4) * sizeof(SmPropValue));
1051
1049
 
1052
1050
        if(!prop1.vals) {
1053
1051
                success = False;