Branch: Tag:

2014-04-27

2014-04-27 20:37:42 by Martin Nilsson <nilsson@opera.com>

mallocs nowdays return void*, so no need to case.

27:    buf->bufsize*=2;    }while(buf->s.len+space >= buf->bufsize);    -  buf->s.str=(char *)realloc(buf->s.str, buf->bufsize); +  buf->s.str=realloc(buf->s.str, buf->bufsize);    if(!buf->s.str)    Pike_fatal("Out of memory.\n");    }
58:      PMOD_EXPORT void debug_initialize_buf(dynamic_buffer *buf)   { -  buf->s.str=(char *)xalloc((buf->bufsize=BUFFER_BEGIN_SIZE)); +  buf->s.str=xalloc((buf->bufsize=BUFFER_BEGIN_SIZE));    *(buf->s.str)=0;    buf->s.len=0;   }