Browse Source

KVM_NO_FILES is 0x80000000, so arg 4 of kvm_openfiles() must be unsigned

int instead of int; millert ok
OPENBSD_3_7
deraadt 20 years ago
parent
commit
a51e10d144
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      src/include/kvm.h

+ 4
- 5
src/include/kvm.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: kvm.h,v 1.11 2004/01/22 21:48:02 espie Exp $ */
/* $OpenBSD: kvm.h,v 1.12 2004/09/14 22:39:56 deraadt Exp $ */
/* $NetBSD: kvm.h,v 1.7 1996/04/19 12:02:50 leo Exp $ */
/*-
@ -71,10 +71,9 @@ struct kinfo_proc *
struct kinfo_proc2 *
kvm_getproc2(kvm_t *, int, int, size_t, int *);
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 *, int, char *);
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 *);
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)


Loading…
Cancel
Save