summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpech <mpech@openbsd.org>2002-06-06 15:41:46 +0000
committermpech <mpech@openbsd.org>2002-06-06 15:41:46 +0000
commit8755b0593d8be343c3fa4972c6bf108559d23e92 (patch)
treeaa05a4c082ec5bde6761343373ac257906307e0c
parentstyle (diff)
downloadwireguard-openbsd-8755b0593d8be343c3fa4972c6bf108559d23e92.tar.xz
wireguard-openbsd-8755b0593d8be343c3fa4972c6bf108559d23e92.zip
Fix *documentation*: one arg of the ktrace(2) is pid_t not int, found while
have fun w/ pid_t cleanups. millert@ ok
-rw-r--r--lib/libc/sys/ktrace.24
-rw-r--r--sys/kern/kern_ktrace.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2
index e38dc292cc7..01a700b0efb 100644
--- a/lib/libc/sys/ktrace.2
+++ b/lib/libc/sys/ktrace.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ktrace.2,v 1.10 2002/02/22 00:05:32 deraadt Exp $
+.\" $OpenBSD: ktrace.2,v 1.11 2002/06/06 15:41:46 mpech Exp $
.\" $NetBSD: ktrace.2,v 1.2 1995/02/27 12:33:58 cgd Exp $
.\"
.\" Copyright (c) 1993
@@ -46,7 +46,7 @@
.Fd #include <sys/uio.h>
.Fd #include <sys/ktrace.h>
.Ft int
-.Fn ktrace "const char *tracefile" "int ops" "int trpoints" "int pid"
+.Fn ktrace "const char *tracefile" "int ops" "int trpoints" "pid_t pid"
.Sh DESCRIPTION
The
.Fn ktrace
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c
index 4986e0a0d19..46abeba17f9 100644
--- a/sys/kern/kern_ktrace.c
+++ b/sys/kern/kern_ktrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_ktrace.c,v 1.27 2002/03/14 01:27:04 millert Exp $ */
+/* $OpenBSD: kern_ktrace.c,v 1.28 2002/06/06 15:41:46 mpech Exp $ */
/* $NetBSD: kern_ktrace.c,v 1.23 1996/02/09 18:59:36 christos Exp $ */
/*
@@ -303,7 +303,7 @@ sys_ktrace(curp, v, retval)
syscallarg(char *) fname;
syscallarg(int) ops;
syscallarg(int) facs;
- syscallarg(int) pid;
+ syscallarg(pid_t) pid;
} */ *uap = v;
struct vnode *vp = NULL;
struct proc *p = NULL;