diff options
author | markm <markm@FreeBSD.org> | 2002-10-23 14:18:07 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-10-23 14:18:07 +0000 |
commit | 372be1a3e11c2a1c5995fdc5ef84e8a49d9977b7 (patch) | |
tree | b1203308ef2b90cb5132ff12865e836ca32e84df /lib/libc/gen/getbsize.c | |
parent | 97ccd4c7eb50cf3bc89cb6cbd22676b5628e37f9 (diff) | |
download | FreeBSD-src-372be1a3e11c2a1c5995fdc5ef84e8a49d9977b7.zip FreeBSD-src-372be1a3e11c2a1c5995fdc5ef84e8a49d9977b7.tar.gz |
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.
Diffstat (limited to 'lib/libc/gen/getbsize.c')
-rw-r--r-- | lib/libc/gen/getbsize.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/getbsize.c b/lib/libc/gen/getbsize.c index b50b14e..11e5ef7 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) |