From 7a96388db15e18cf622a09252ee2584d302e99ee Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 16 Sep 1998 09:30:14 +0000 Subject: [PATCH] Adjust the declarations of kvm_read and kvm_write to match reality a little closer. --- include/kvm.h | 4 ++-- lib/libkvm/kvm.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/kvm.h b/include/kvm.h index 6c437b919c97..fb2d22435fee 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 6c437b919c97..fb2d22435fee 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));