* vfs.h: Fixed prototypes for mc_read() and mc_write(). Now they

get void * instead of char *.
	* vfs.c: Likewise.
This commit is contained in:
Roland Illig 2005-04-13 19:08:13 +00:00
parent a3a1e26210
commit 526bf72983
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-04-13 Roland Illig <roland.illig@gmx.de>
* 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 <me@pavelsh.pp.ru>
* extfs/uarj.in (mcarjfs_copyout): Use the regular extract command,

View File

@ -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) \

View File

@ -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);