diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-14 22:39:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-14 22:39:57 +0000 |
commit | 213b2ba7391e806ea026e45486233da58aa641e6 (patch) | |
tree | 848c9009860a309cb7bc8ffc0d54933685c9e9a2 /lib/libkvm | |
parent | 05921119d5c75ef8cfcc6703e458b03739890c40 (diff) |
KVM_NO_FILES is 0x80000000, so arg 4 of kvm_openfiles() must be unsigned
int instead of int; millert ok
Diffstat (limited to 'lib/libkvm')
-rw-r--r-- | lib/libkvm/kvm.c | 6 | ||||
-rw-r--r-- | lib/libkvm/kvm_open.3 | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index da056fbc899..77ffa1880b4 100644 --- a/lib/libkvm/kvm.c +++ b/lib/libkvm/kvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.c,v 1.40 2004/08/11 18:45:58 jaredy Exp $ */ +/* $OpenBSD: kvm.c,v 1.41 2004/09/14 22:39:56 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.40 2004/08/11 18:45:58 jaredy Exp $"; +static char *rcsid = "$OpenBSD: kvm.c,v 1.41 2004/09/14 22:39:56 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -590,7 +590,7 @@ kvm_dump_wrtheader(kvm_t *kd, FILE *fp, int dumpsize) kvm_t * kvm_openfiles(const char *uf, const char *mf, const char *sf, - int flag, char *errout) + unsigned int flag, char *errout) { kvm_t *kd; diff --git a/lib/libkvm/kvm_open.3 b/lib/libkvm/kvm_open.3 index b6a1dee6648..bccd0360c2c 100644 --- a/lib/libkvm/kvm_open.3 +++ b/lib/libkvm/kvm_open.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kvm_open.3,v 1.9 2003/06/02 20:18:41 millert Exp $ +.\" $OpenBSD: kvm_open.3,v 1.10 2004/09/14 22:39:56 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" "int flags" "char *errbuf" +.Fn kvm_openfiles "const char *execfile" "const char *corefile" "char *swapfile" "unsigned int flags" "char *errbuf" .Ft int .Fn kvm_close "kvm_t *kd" .Sh DESCRIPTION |