diff options
author | ed <ed@FreeBSD.org> | 2010-06-21 09:55:56 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-06-21 09:55:56 +0000 |
commit | 76489ac1ea604f511232838164573ea21e9a74a8 (patch) | |
tree | 916572d41a618634b84823c3b89048c2144938df /sys/kern/kern_malloc.c | |
parent | 107ec73aada25d2e0a7051e1f2a8cbef92902d04 (diff) | |
download | FreeBSD-src-76489ac1ea604f511232838164573ea21e9a74a8.zip FreeBSD-src-76489ac1ea604f511232838164573ea21e9a74a8.tar.gz |
Use ISO C99 integer types in sys/kern where possible.
There are only about 100 occurences of the BSD-specific u_int*_t
datatypes in sys/kern. The ISO C99 integer types are used here more
often.
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r-- | sys/kern/kern_malloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 51045ee..cef4b26 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -129,7 +129,7 @@ static int kmemcount; #define KMEM_ZMAX PAGE_SIZE #define KMEM_ZSIZE (KMEM_ZMAX >> KMEM_ZSHIFT) -static u_int8_t kmemsize[KMEM_ZSIZE + 1]; +static uint8_t kmemsize[KMEM_ZSIZE + 1]; /* * Small malloc(9) memory allocations are allocated from a set of UMA buckets @@ -558,7 +558,7 @@ reallocf(void *addr, unsigned long size, struct malloc_type *mtp, int flags) static void kmeminit(void *dummy) { - u_int8_t indx; + uint8_t indx; u_long mem_size; int i; @@ -879,8 +879,8 @@ DB_SHOW_COMMAND(malloc, db_show_malloc) { struct malloc_type_internal *mtip; struct malloc_type *mtp; - u_int64_t allocs, frees; - u_int64_t alloced, freed; + uint64_t allocs, frees; + uint64_t alloced, freed; int i; db_printf("%18s %12s %12s %12s\n", "Type", "InUse", "MemUse", |