summaryrefslogtreecommitdiff
path: root/sbin/sysctl/sysctl.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-11-21 06:18:28 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-11-21 06:18:28 +0000
commit6d74a94786ac87369e1fbebf8c688a304683ddf8 (patch)
treec1b8fa6e1b211a82d6eb38f289a80d056b4e18ca /sbin/sysctl/sysctl.c
parent838f8ac4c0431ca2a4727f2f7b617756cfcbb02a (diff)
Fix an int * that should be a size_t * when calling sysctl(3).
Diffstat (limited to 'sbin/sysctl/sysctl.c')
-rw-r--r--sbin/sysctl/sysctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index cd583e05c28..43571198475 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.53 2000/06/30 16:00:10 millert Exp $ */
+/* $OpenBSD: sysctl.c,v 1.54 2000/11/21 06:18:27 millert Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.53 2000/06/30 16:00:10 millert Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.54 2000/11/21 06:18:27 millert Exp $";
#endif
#endif /* not lint */
@@ -379,8 +379,8 @@ parse(string, flags)
} else if (mib[1] == VM_PSSTRINGS) {
struct _ps_strings _ps;
- len = sizeof(_ps);
- if (sysctl(mib, 2, &_ps, &len, NULL, 0) == -1) {
+ size = sizeof(_ps);
+ if (sysctl(mib, 2, &_ps, &size, NULL, 0) == -1) {
if (flags == 0)
return;
if (!nflag)