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.
This commit is contained in:
parent
97ccd4c7eb
commit
372be1a3e1
@ -227,7 +227,7 @@ __uint32_t
|
||||
arc4random(void);
|
||||
void arc4random_addrandom(unsigned char *dat, int datlen);
|
||||
void arc4random_stir(void);
|
||||
char *getbsize(int *, long *);
|
||||
char *getbsize(size_t *, long *);
|
||||
/* getcap(3) functions */
|
||||
char *cgetcap(char *, const char *, int);
|
||||
int cgetclose(void);
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user