Branch: Tag:

2014-04-27

2014-04-27 18:31:29 by Martin Nilsson <nilsson@opera.com>

Free takes void* and doesn't need any cast anymore.

622:    rehash_string_backwards(old_base[h]);       if(old_base) -  free((char *)old_base); +  free(old_base);      #ifdef PIKE_RUN_UNLOCKED    for(h=0;h<BUCKET_LOCKS;h++) mt_unlock(bucket_locks + h);
653:    if (s->flags & STRING_IS_SHORT) { \    ba_free(&string_allocator, s); \    } else { \ -  debug_free((char *)s, DMALLOC_LOCATION(), 1); \ +  debug_free(s, DMALLOC_LOCATION(), 1); \    } \    } while(0)   
2293:    base_table[e]=0;    UNLOCK_BUCKET(e);    } -  free((char *)base_table); +  free(base_table);    base_table=0;    num_strings=0;