aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/getbsize.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-10-23 14:18:07 +0000
committerMark Murray <markm@FreeBSD.org>2002-10-23 14:18:07 +0000
commitd69d15193c1a720ffa8269058ff216dccea734c5 (patch)
treeb1203308ef2b90cb5132ff12865e836ca32e84df /lib/libc/gen/getbsize.c
parent06a93bac4f22e11dc340c52aa34ee4fe61605168 (diff)
downloadsrc-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/libc/gen/getbsize.c')
-rw-r--r--lib/libc/gen/getbsize.c5
1 files changed, 3 insertions, 2 deletions
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)