summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 20:19:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-04-06 20:19:23 +0000
commit0b38e5882ce4fffb75e5be6d5a1793142062dddf (patch)
treef53884c39f50f489850df8411ef7b6e6d80320b9 /sbin
parent316c71ad8113c18a17ca744260d97a178a80d0cc (diff)
Use a size_t as arg 4 to sysctl(3).
Diffstat (limited to 'sbin')
-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 5e399658acc..a4867ee0deb 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.6 1997/01/16 03:57:31 millert Exp $ */
+/* $OpenBSD: sysctl.c,v 1.7 1997/04/06 20:19:22 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.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: sysctl.c,v 1.6 1997/01/16 03:57:31 millert Exp $";
+static char *rcsid = "$OpenBSD: sysctl.c,v 1.7 1997/04/06 20:19:22 millert Exp $";
#endif
#endif /* not lint */
@@ -216,12 +216,12 @@ parse(string, flags)
char *string;
int flags;
{
- int indx, type, state, len;
+ int indx, type, state;
int special = 0;
void *newval = 0;
int intval, newsize = 0;
quad_t quadval;
- size_t size;
+ size_t size, len;
struct list *lp;
int mib[CTL_MAXNAME];
char *cp, *bufp, buf[BUFSIZ];