diff options
author | Mark Murray <markm@FreeBSD.org> | 2002-10-23 14:18:07 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2002-10-23 14:18:07 +0000 |
commit | d69d15193c1a720ffa8269058ff216dccea734c5 (patch) | |
tree | b1203308ef2b90cb5132ff12865e836ca32e84df /lib | |
parent | 06a93bac4f22e11dc340c52aa34ee4fe61605168 (diff) | |
download | src-d69d15193c1a720ffa8269058ff216dccea734c5.tar.gz src-d69d15193c1a720ffa8269058ff216dccea734c5.zip |
Make the first argument of getbsize a size_t* instead of an int*, as this is what the quantity actually is. Fix an easy const while I'm here.
Notes
Notes:
svn path=/head/; revision=105797
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/getbsize.3 | 2 | ||||
-rw-r--r-- | lib/libc/gen/getbsize.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/gen/getbsize.3 b/lib/libc/gen/getbsize.3 index cbf48630f94b..f91f8ba35cc4 100644 --- a/lib/libc/gen/getbsize.3 +++ b/lib/libc/gen/getbsize.3 @@ -43,7 +43,7 @@ .Sh SYNOPSIS .In stdlib.h .Ft char * -.Fn getbsize "int *headerlenp" "long *blocksizep" +.Fn getbsize "size_t *headerlenp" "long *blocksizep" .Sh DESCRIPTION The .Fn getbsize diff --git a/lib/libc/gen/getbsize.c b/lib/libc/gen/getbsize.c index b50b14e90008..11e5ef751b6a 100644 --- a/lib/libc/gen/getbsize.c +++ b/lib/libc/gen/getbsize.c @@ -44,12 +44,13 @@ __FBSDID("$FreeBSD$"); char * getbsize(headerlenp, blocksizep) - int *headerlenp; + size_t *headerlenp; long *blocksizep; { static char header[20]; long n, max, mul, blocksize; - char *ep, *p, *form; + char *ep, *p; + const char *form; #define KB (1024L) #define MB (1024L * 1024L) |