From f091f00a06a15454add413504e4855db24ab44a2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 29 Sep 2000 03:39:20 +0000 Subject: Update. 2000-09-19 H.J. Lu * malloc/malloc.h (__memalign_hook): Fix the parameter order. * malloc/malloc.c (__memalign_hook): Likewise. (memalign_hook_ini): Likewise. --- malloc/malloc.c | 10 +++++----- malloc/malloc.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'malloc') diff --git a/malloc/malloc.c b/malloc/malloc.c index 9a8a087..2eb9c55 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1772,15 +1772,15 @@ realloc_hook_ini(ptr, sz, caller) static Void_t* #if __STD_C -memalign_hook_ini(size_t sz, size_t alignment, const __malloc_ptr_t caller) +memalign_hook_ini(size_t alignment, size_t sz, const __malloc_ptr_t caller) #else -memalign_hook_ini(sz, alignment, caller) - size_t sz; size_t alignment; const __malloc_ptr_t caller; +memalign_hook_ini(alignment, sz, caller) + size_t alignment; size_t sz; const __malloc_ptr_t caller; #endif { __memalign_hook = NULL; ptmalloc_init(); - return mEMALIGn(sz, alignment); + return mEMALIGn(alignment, sz); } void weak_variable (*__malloc_initialize_hook) __MALLOC_P ((void)) = NULL; @@ -1792,7 +1792,7 @@ __malloc_ptr_t weak_variable (*__realloc_hook) __MALLOC_P ((__malloc_ptr_t __ptr, size_t __size, const __malloc_ptr_t)) = realloc_hook_ini; __malloc_ptr_t weak_variable (*__memalign_hook) - __MALLOC_P ((size_t __size, size_t __alignment, const __malloc_ptr_t)) + __MALLOC_P ((size_t __alignment, size_t __size, const __malloc_ptr_t)) = memalign_hook_ini; void weak_variable (*__after_morecore_hook) __MALLOC_P ((void)) = NULL; diff --git a/malloc/malloc.h b/malloc/malloc.h index af908c1..decf61c 100644 --- a/malloc/malloc.h +++ b/malloc/malloc.h @@ -225,8 +225,8 @@ extern __malloc_ptr_t (*__malloc_hook) __MALLOC_PMT ((size_t __size, extern __malloc_ptr_t (*__realloc_hook) __MALLOC_PMT ((__malloc_ptr_t __ptr, size_t __size, __const __malloc_ptr_t)); -extern __malloc_ptr_t (*__memalign_hook) __MALLOC_PMT ((size_t __size, - size_t __alignment, +extern __malloc_ptr_t (*__memalign_hook) __MALLOC_PMT ((size_t __alignment, + size_t __size, __const __malloc_ptr_t)); extern void (*__after_morecore_hook) __MALLOC_PMT ((void)); -- cgit v1.1