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.

462:      MALLOC_FUNCTION   node * alloc_node_s() { -  return (node*)ba_alloc(&Pike_compiler->node_allocator); +  return ba_alloc(&Pike_compiler->node_allocator);   }      void count_memory_in_node_ss(size_t * num, size_t * size) {
2495:    struct used_vars *ret;    struct scope_info *src;    struct scope_info **dst; -  ret=(struct used_vars *)xalloc(sizeof(struct used_vars)); +  ret=xalloc(sizeof(struct used_vars));    src = a->locals;    dst = &(ret->locals);    *dst = NULL;