summaryrefslogtreecommitdiff
path: root/regress/sys/copy/copy.c
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2011-04-10 03:21:00 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2011-04-10 03:21:00 +0000
commitff2998acd8d7dd47cb849ba5efd6f2f2b46423af (patch)
tree7c5fe667dbfd41fa720d0690392d481119fa2530 /regress/sys/copy/copy.c
parent871b6512afed34a138792a3efbd3b870579c1c9e (diff)
Switch back from KERN_PROC2/kinfo_proc2 to KERN_PROC/kinfo_proc now
that we've got name we want for the API we want "ZAP!" deraadt@
Diffstat (limited to 'regress/sys/copy/copy.c')
-rw-r--r--regress/sys/copy/copy.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/sys/copy/copy.c b/regress/sys/copy/copy.c
index edb35fd3607..bd929418740 100644
--- a/regress/sys/copy/copy.c
+++ b/regress/sys/copy/copy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: copy.c,v 1.3 2009/02/15 13:33:22 jsing Exp $ */
+/* $OpenBSD: copy.c,v 1.4 2011/04/10 03:20:59 guenther Exp $ */
/* Written by Ted Unangst 2004 Public Domain */
@@ -34,7 +34,7 @@ main(int argc, char **argv)
void *goodbuf;
void *badbuf;
int mib[6];
- struct kinfo_proc2 kinfo;
+ struct kinfo_proc kinfo;
size_t kinfosize = sizeof(kinfo);
int s, i;
struct ifreq ifrdesc;
@@ -45,10 +45,10 @@ main(int argc, char **argv)
err(1, "socket");
mib[0] = CTL_KERN;
- mib[1] = KERN_PROC2;
+ mib[1] = KERN_PROC;
mib[2] = KERN_PROC_PID;
mib[3] = getpid();
- mib[4] = sizeof(struct kinfo_proc2);
+ mib[4] = sizeof(struct kinfo_proc);
mib[5] = 1;
if (sysctl(mib, 6, &kinfo, &kinfosize, 0, 0))