diff options
author | Conrad Meyer <cem@FreeBSD.org> | 2018-01-24 19:37:18 +0000 |
---|---|---|
committer | Conrad Meyer <cem@FreeBSD.org> | 2018-01-24 19:37:18 +0000 |
commit | bd555da94b1517d6441660317193ff901bb5387b (patch) | |
tree | f9d2640648dfcc686499ae8c6fc64ae2d3ee6ec8 /share | |
parent | b12a7532e390d7d3542b3b6d758f5c4d226c9fd2 (diff) | |
download | src-bd555da94b1517d6441660317193ff901bb5387b.tar.gz src-bd555da94b1517d6441660317193ff901bb5387b.zip |
malloc(9): Change nominal size to size_t to match standard C
No functional change -- size_t matches unsigned long on all platforms.
Reported by: bde
Discussed with: jhb
Sponsored by: Dell EMC Isilon
Notes
Notes:
svn path=/head/; revision=328351
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/malloc.9 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man9/malloc.9 b/share/man/man9/malloc.9 index 7bf4a4ed0ced..53fc21e4f9e5 100644 --- a/share/man/man9/malloc.9 +++ b/share/man/man9/malloc.9 @@ -29,7 +29,7 @@ .\" $NetBSD: malloc.9,v 1.3 1996/11/11 00:05:11 lukem Exp $ .\" $FreeBSD$ .\" -.Dd January 10, 2018 +.Dd January 24, 2018 .Dt MALLOC 9 .Os .Sh NAME @@ -44,15 +44,15 @@ .In sys/types.h .In sys/malloc.h .Ft void * -.Fn malloc "unsigned long size" "struct malloc_type *type" "int flags" +.Fn malloc "size_t size" "struct malloc_type *type" "int flags" .Ft void * .Fn mallocarray "size_t nmemb" "size_t size" "struct malloc_type *type" "int flags" .Ft void .Fn free "void *addr" "struct malloc_type *type" .Ft void * -.Fn realloc "void *addr" "unsigned long size" "struct malloc_type *type" "int flags" +.Fn realloc "void *addr" "size_t size" "struct malloc_type *type" "int flags" .Ft void * -.Fn reallocf "void *addr" "unsigned long size" "struct malloc_type *type" "int flags" +.Fn reallocf "void *addr" "size_t size" "struct malloc_type *type" "int flags" .Fn MALLOC_DECLARE type .In sys/param.h .In sys/malloc.h |