summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-09-16 09:30:14 +0000
committerdfr <dfr@FreeBSD.org>1998-09-16 09:30:14 +0000
commit7a96388db15e18cf622a09252ee2584d302e99ee (patch)
tree49f1d12f7682c3eb0eaaa94ef36bc747e4286f86
parent435b9d97a5dcb1684e7f8657b12906c0512fc419 (diff)
downloadFreeBSD-src-7a96388db15e18cf622a09252ee2584d302e99ee.zip
FreeBSD-src-7a96388db15e18cf622a09252ee2584d302e99ee.tar.gz
Adjust the declarations of kvm_read and kvm_write to match reality a little
closer.
-rw-r--r--include/kvm.h4
-rw-r--r--lib/libkvm/kvm.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/kvm.h b/include/kvm.h
index 6c437b9..fb2d224 100644
--- a/include/kvm.h
+++ b/include/kvm.h
@@ -61,8 +61,8 @@ kvm_t *kvm_open
__P((const char *, const char *, const char *, int, const char *));
kvm_t *kvm_openfiles
__P((const char *, const char *, const char *, int, char *));
-int kvm_read __P((kvm_t *, unsigned long, void *, unsigned int));
-int kvm_write __P((kvm_t *, unsigned long, const void *, unsigned int));
+ssize_t kvm_read __P((kvm_t *, unsigned long, void *, size_t));
+ssize_t kvm_write __P((kvm_t *, unsigned long, const void *, size_t));
/* Comment this out until it can be fixed correctly.
ssize_t kvm_uread
__P((kvm_t *, struct proc *, unsigned long, char *, size_t));
diff --git a/lib/libkvm/kvm.h b/lib/libkvm/kvm.h
index 6c437b9..fb2d224 100644
--- a/lib/libkvm/kvm.h
+++ b/lib/libkvm/kvm.h
@@ -61,8 +61,8 @@ kvm_t *kvm_open
__P((const char *, const char *, const char *, int, const char *));
kvm_t *kvm_openfiles
__P((const char *, const char *, const char *, int, char *));
-int kvm_read __P((kvm_t *, unsigned long, void *, unsigned int));
-int kvm_write __P((kvm_t *, unsigned long, const void *, unsigned int));
+ssize_t kvm_read __P((kvm_t *, unsigned long, void *, size_t));
+ssize_t kvm_write __P((kvm_t *, unsigned long, const void *, size_t));
/* Comment this out until it can be fixed correctly.
ssize_t kvm_uread
__P((kvm_t *, struct proc *, unsigned long, char *, size_t));
OpenPOWER on IntegriCloud