summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-06-18 23:41:32 +0000
committerderaadt <deraadt@openbsd.org>2002-06-18 23:41:32 +0000
commit2588c3c0a519b480f1a4c93255112f0cecf6a17c (patch)
treee7df313aa2dca8bcd7655364302a0e6b9499a412
parentgcc -Wall (pass this one up, hin) (diff)
downloadwireguard-openbsd-2588c3c0a519b480f1a4c93255112f0cecf6a17c.tar.xz
wireguard-openbsd-2588c3c0a519b480f1a4c93255112f0cecf6a17c.zip
size_t cleanups
-rw-r--r--usr.sbin/pstat/pstat.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index a6c58a21853..b04d69d08fb 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pstat.c,v 1.34 2002/06/16 16:54:29 miod Exp $ */
+/* $OpenBSD: pstat.c,v 1.35 2002/06/18 23:41:32 deraadt Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94";
#else
-static char *rcsid = "$OpenBSD: pstat.c,v 1.34 2002/06/16 16:54:29 miod Exp $";
+static char *rcsid = "$OpenBSD: pstat.c,v 1.35 2002/06/18 23:41:32 deraadt Exp $";
#endif
#endif /* not lint */
@@ -122,7 +122,7 @@ kvm_t *kd = 0;
}
void filemode(void);
-int getfiles(char **, int *);
+int getfiles(char **, size_t *);
struct mount *
getmnt(struct mount *);
struct e_vnode *
@@ -732,8 +732,8 @@ kinfo_vnodes(avnodes)
struct mount *mp, mount;
struct vnode *vp, vnode;
char *vbuf, *evbuf, *bp;
- int num, numvnodes;
- int mib[2];
+ int mib[2], numvnodes;
+ size_t num;
#define VPTRSZ sizeof(struct vnode *)
#define VNODESZ sizeof(struct vnode)
@@ -777,10 +777,10 @@ char hdr[]=" LINE RAW CAN OUT HWT LWT COL STATE SESS PGID DISC\n";
void
ttymode()
{
- int ntty, nlen;
struct ttylist_head tty_head;
struct tty *tp, tty;
- int mib[2];
+ int mib[2], ntty;
+ size_t nlen;
if (kd == 0) {
mib[0] = CTL_KERN;
@@ -876,9 +876,9 @@ filemode()
struct file fp, *ffp;
struct file *addr;
char *buf, flagbuf[16], *fbp;
- int len, maxfile, nfile;
static char *dtypes[] = { "???", "inode", "socket" };
- int mib[2];
+ int mib[2], maxfile, nfile;
+ size_t len;
if (kd == 0) {
mib[0] = CTL_KERN;
@@ -954,7 +954,7 @@ filemode()
int
getfiles(abuf, alen)
char **abuf;
- int *alen;
+ size_t *alen;
{
size_t len;
int mib[2];