From ae960a9ece0552d1982e56e26cc4c3932f51f2ab Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 8 Dec 2003 21:58:38 +0000 Subject: my take at fixing the simulator warnings by adding mode_t, size_t, ssize_t and off_t git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4116 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 5bebcd701f..e7ec86aa53 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -135,13 +135,13 @@ struct plugin_api { /* file */ int (*open)(const char* pathname, int flags); int (*close)(int fd); - int (*read)(int fd, void* buf, int count); - int (*lseek)(int fd, int offset, int whence); - int (*creat)(const char *pathname, int mode); - int (*write)(int fd, void* buf, int count); + ssize_t (*read)(int fd, void* buf, size_t count); + off_t (*lseek)(int fd, off_t offset, int whence); + int (*creat)(const char *pathname, mode_t mode); + ssize_t (*write)(int fd, const void* buf, size_t count); int (*remove)(const char* pathname); int (*rename)(const char* path, const char* newname); - int (*ftruncate)(int fd, unsigned int size); + int (*ftruncate)(int fd, off_t length); int (*filesize)(int fd); int (*fprintf)(int fd, const char *fmt, ...); int (*read_line)(int fd, char* buffer, int buffer_size); -- cgit v1.2.3