From c2e3ff288d758534194e339a5d675e6ce05bcb77 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 26 Feb 2013 14:25:13 +0000 Subject: * libc/include/malloc.h (struct mallinfo): Convert type of all members to size_t to match all targets. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/malloc.h | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 89c462d40..2851b60be 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2013-02-26 Corinna Vinschen + + * libc/include/malloc.h (struct mallinfo): Convert type of all members + to size_t to match all targets. + 2013-02-20 Yaakov Selkowitz Joseph S. Myers diff --git a/newlib/libc/include/malloc.h b/newlib/libc/include/malloc.h index c46357c65..41b5efdc0 100644 --- a/newlib/libc/include/malloc.h +++ b/newlib/libc/include/malloc.h @@ -20,16 +20,16 @@ extern "C" { libc/stdlib/mallocr.c. */ struct mallinfo { - int arena; /* total space allocated from system */ - int ordblks; /* number of non-inuse chunks */ - int smblks; /* unused -- always zero */ - int hblks; /* number of mmapped regions */ - int hblkhd; /* total space in mmapped regions */ - int usmblks; /* unused -- always zero */ - int fsmblks; /* unused -- always zero */ - int uordblks; /* total allocated space */ - int fordblks; /* total non-inuse space */ - int keepcost; /* top-most, releasable (via malloc_trim) space */ + size_t arena; /* total space allocated from system */ + size_t ordblks; /* number of non-inuse chunks */ + size_t smblks; /* unused -- always zero */ + size_t hblks; /* number of mmapped regions */ + size_t hblkhd; /* total space in mmapped regions */ + size_t usmblks; /* unused -- always zero */ + size_t fsmblks; /* unused -- always zero */ + size_t uordblks; /* total allocated space */ + size_t fordblks; /* total non-inuse space */ + size_t keepcost; /* top-most, releasable (via malloc_trim) space */ }; /* The routines. */ -- cgit v1.2.3