Mercurial > hg > xemacs-beta
diff src/free-hook.c @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | b2472a1930f2 |
children | fbbf69b4e8a7 |
line wrap: on
line diff
--- a/src/free-hook.c Mon Aug 13 10:27:41 2007 +0200 +++ b/src/free-hook.c Mon Aug 13 10:28:48 2007 +0200 @@ -220,7 +220,7 @@ #endif EMACS_INT present = (EMACS_INT) gethash (ptr, pointer_table, - (void **) &size); + (CONST void **) &size); if (!present) { @@ -230,9 +230,7 @@ /* I originally wrote: "There's really no need to drop core." I have seen the error of my ways. -slb */ if (strict_free_check) - { - abort (); - } + abort (); #endif printf("Freeing unmalloc'ed memory at %p\n", ptr); __free_hook = check_free; @@ -246,9 +244,7 @@ #if !defined(__linux__) /* See above comment. */ if (strict_free_check) - { - abort (); - } + abort (); #endif printf("Freeing %p twice\n", ptr); __free_hook = check_free; @@ -353,7 +349,7 @@ void *result = malloc (size); if (!ptr) return result; - present = (EMACS_INT) gethash (ptr, pointer_table, (void **) &old_size); + present = (EMACS_INT) gethash (ptr, pointer_table, (CONST void **) &old_size); if (!present) { /* This can only happen by reallocing a pointer that didn't