summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/kvm.h4
-rw-r--r--lib/libkvm/kvm.c6
-rw-r--r--lib/libkvm/kvm_open.34
3 files changed, 7 insertions, 7 deletions
diff --git a/include/kvm.h b/include/kvm.h
index 0afdb2d9f1f..027ef420543 100644
--- a/include/kvm.h
+++ b/include/kvm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.h,v 1.12 2004/09/14 22:39:56 deraadt Exp $ */
+/* $OpenBSD: kvm.h,v 1.13 2006/03/31 03:09:16 deraadt Exp $ */
/* $NetBSD: kvm.h,v 1.7 1996/04/19 12:02:50 leo Exp $ */
/*-
@@ -73,7 +73,7 @@ struct kinfo_proc2 *
int kvm_nlist(kvm_t *, struct nlist *);
kvm_t *kvm_open(const char *, const char *, const char *, int, const char *);
kvm_t *kvm_openfiles(const char *, const char *, const char *,
- unsigned int, char *);
+ int, char *);
ssize_t kvm_read(kvm_t *, unsigned long, void *, size_t)
__attribute__((__bounded__(__buffer__,3,4)));
ssize_t kvm_write(kvm_t *, unsigned long, const void *, size_t)
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index 368aa93ebf5..ebf55567702 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.c,v 1.43 2006/03/20 15:11:48 mickey Exp $ */
+/* $OpenBSD: kvm.c,v 1.44 2006/03/31 03:09:17 deraadt Exp $ */
/* $NetBSD: kvm.c,v 1.43 1996/05/05 04:31:59 gwr Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
-static char *rcsid = "$OpenBSD: kvm.c,v 1.43 2006/03/20 15:11:48 mickey Exp $";
+static char *rcsid = "$OpenBSD: kvm.c,v 1.44 2006/03/31 03:09:17 deraadt Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
@@ -592,7 +592,7 @@ kvm_dump_wrtheader(kvm_t *kd, FILE *fp, int dumpsize)
kvm_t *
kvm_openfiles(const char *uf, const char *mf, const char *sf,
- unsigned int flag, char *errout)
+ int flag, char *errout)
{
kvm_t *kd;
diff --git a/lib/libkvm/kvm_open.3 b/lib/libkvm/kvm_open.3
index bccd0360c2c..b0b6759b72e 100644
--- a/lib/libkvm/kvm_open.3
+++ b/lib/libkvm/kvm_open.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kvm_open.3,v 1.10 2004/09/14 22:39:56 deraadt Exp $
+.\" $OpenBSD: kvm_open.3,v 1.11 2006/03/31 03:09:35 deraadt Exp $
.\" $NetBSD: kvm_open.3,v 1.2 1996/03/18 22:33:52 thorpej Exp $
.\"
.\" Copyright (c) 1992, 1993
@@ -48,7 +48,7 @@
.Ft kvm_t *
.Fn kvm_open "const char *execfile" "const char *corefile" "char *swapfile" "int flags" "const char *errstr"
.Ft kvm_t *
-.Fn kvm_openfiles "const char *execfile" "const char *corefile" "char *swapfile" "unsigned int flags" "char *errbuf"
+.Fn kvm_openfiles "const char *execfile" "const char *corefile" "char *swapfile" "int flags" "char *errbuf"
.Ft int
.Fn kvm_close "kvm_t *kd"
.Sh DESCRIPTION