Fix a couple of warnings (const a function parameter and change some
ints to size_ts to better match the types of variables they are used with). Glanced at by: des
This commit is contained in:
parent
3979795fb8
commit
869e10c88c
@ -148,7 +148,7 @@ static void doforkst(void);
|
||||
static void domem(void);
|
||||
static void dointr(void);
|
||||
static void dosum(void);
|
||||
static void dosysctl(char *);
|
||||
static void dosysctl(const char *);
|
||||
static void dovmstat(u_int, int);
|
||||
static void dozmem(void);
|
||||
static void kread(int, void *, size_t);
|
||||
@ -836,8 +836,7 @@ dointr(void)
|
||||
{
|
||||
u_long *intrcnt, uptime;
|
||||
u_int64_t inttotal;
|
||||
size_t clen, nintr, inamlen;
|
||||
int i, istrnamlen;
|
||||
size_t clen, nintr, inamlen, i, istrnamlen;
|
||||
char *intrname, *tintrname;
|
||||
|
||||
uptime = getuptime();
|
||||
@ -915,7 +914,7 @@ dozmem(void)
|
||||
}
|
||||
|
||||
static void
|
||||
dosysctl(char *name)
|
||||
dosysctl(const char *name)
|
||||
{
|
||||
char *buf;
|
||||
size_t bufsize;
|
||||
|
Loading…
Reference in New Issue
Block a user