> What about the following fix?  This should fix things so that we don't
> use vanilla malloc/free, and only use our own versions.

This looks okay.  Has it been tested?

> +#include <malloc.h>          /* for malloc_hook/free_hook */
> +
> +void *init_hook (void);
> +void *malloc_hook (size_t size, const void *caller);
> +void free_hook (void *ptr, const void *caller);

Can't these be made static?

> +
> +void (*__malloc_initialize_hook) (void) = (void *) init_hook;

Do you really need the void * cast?


_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to