diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-09-29 03:39:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-09-29 03:39:20 +0000 |
commit | f091f00a06a15454add413504e4855db24ab44a2 (patch) | |
tree | 6d871c52ca8f9a9ee33c4a4d739ef90e0a613829 /malloc/malloc.c | |
parent | e658b54e8e67c00063a0b549fa25b73d8e6d4076 (diff) | |
download | glibc-f091f00a06a15454add413504e4855db24ab44a2.zip glibc-f091f00a06a15454add413504e4855db24ab44a2.tar.gz glibc-f091f00a06a15454add413504e4855db24ab44a2.tar.bz2 |
Update.
2000-09-19 H.J. Lu <hjl@gnu.org>
* malloc/malloc.h (__memalign_hook): Fix the parameter order.
* malloc/malloc.c (__memalign_hook): Likewise.
(memalign_hook_ini): Likewise.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r-- | malloc/malloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; |