From 526bf72983a63a1fc9258e2baa42227a9101cd1b Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Wed, 13 Apr 2005 19:08:13 +0000 Subject: [PATCH] * vfs.h: Fixed prototypes for mc_read() and mc_write(). Now they get void * instead of char *. * vfs.c: Likewise. --- vfs/ChangeLog | 6 ++++++ vfs/vfs.c | 4 ++-- vfs/vfs.h | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index cb5e7bb28..3bf32b8b5 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,9 @@ +2005-04-13 Roland Illig + + * vfs.h: Fixed prototypes for mc_read() and mc_write(). Now they + get void * instead of char *. + * vfs.c: Likewise. + 2005-03-31 Pavel S. Shirshov * extfs/uarj.in (mcarjfs_copyout): Use the regular extract command, diff --git a/vfs/vfs.c b/vfs/vfs.c index a548ee7ff..a0331eaef 100644 --- a/vfs/vfs.c +++ b/vfs/vfs.c @@ -389,8 +389,8 @@ int mc_##name inarg \ return result; \ } -MC_HANDLEOP(read, (int handle, char *buffer, int count), (vfs_info (handle), buffer, count) ) -MC_HANDLEOP (write, (int handle, const char *buf, int nbyte), (vfs_info (handle), buf, nbyte)) +MC_HANDLEOP(read, (int handle, void *buffer, int count), (vfs_info (handle), buffer, count) ) +MC_HANDLEOP (write, (int handle, const void *buf, int nbyte), (vfs_info (handle), buf, nbyte)) #define MC_RENAMEOP(name) \ diff --git a/vfs/vfs.h b/vfs/vfs.h index 3bbbd8019..634634eae 100644 --- a/vfs/vfs.h +++ b/vfs/vfs.h @@ -19,8 +19,8 @@ int vfs_file_is_local (const char *filename); int mc_open (const char *filename, int flags, ...); int mc_close (int handle); -int mc_read (int handle, char *buffer, int count); -int mc_write (int handle, const char *buffer, int count); +int mc_read (int handle, void *buffer, int count); +int mc_write (int handle, const void *buffer, int count); off_t mc_lseek (int fd, off_t offset, int whence); int mc_chdir (const char *path);