~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to image_xwd.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:
147
147
        gc      = DefaultGC(dpy, scrn);
148
148
 
149
149
        buffer_size = header.bytes_per_line * h;
150
 
        imagedata = (unsigned char *) malloc(buffer_size);
 
150
        imagedata = malloc(buffer_size);
151
151
        if(! imagedata) {
152
152
                fprintf(stderr, "cannot allocate memory for image %s\n", filename);
153
153
                return (None);