From 601fda97843c96afaedd55038e039a013c91b2df Mon Sep 17 00:00:00 2001 From: aliaspider Date: Sun, 31 Dec 2017 14:06:03 +0100 Subject: [PATCH] (WIIU) fix warnings --- deps/libiosuhax/iosuhax_devoptab.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/deps/libiosuhax/iosuhax_devoptab.c b/deps/libiosuhax/iosuhax_devoptab.c index 75875bb3ca..12881974b4 100644 --- a/deps/libiosuhax/iosuhax_devoptab.c +++ b/deps/libiosuhax/iosuhax_devoptab.c @@ -179,7 +179,7 @@ static int fs_dev_open_r (struct _reent *r, void *fileStruct, const char *path, } -static int fs_dev_close_r (struct _reent *r, int fd) +static int fs_dev_close_r (struct _reent *r, void *fd) { fs_dev_file_state_t *file = (fs_dev_file_state_t *)fd; if(!file->dev) { @@ -201,7 +201,7 @@ static int fs_dev_close_r (struct _reent *r, int fd) return 0; } -static off_t fs_dev_seek_r (struct _reent *r, int fd, off_t pos, int dir) +static off_t fs_dev_seek_r (struct _reent *r, void* fd, off_t pos, int dir) { fs_dev_file_state_t *file = (fs_dev_file_state_t *)fd; if(!file->dev) { @@ -239,7 +239,7 @@ static off_t fs_dev_seek_r (struct _reent *r, int fd, off_t pos, int dir) return result; } -static ssize_t fs_dev_write_r (struct _reent *r, int fd, const char *ptr, size_t len) +static ssize_t fs_dev_write_r (struct _reent *r, void *fd, const char *ptr, size_t len) { fs_dev_file_state_t *file = (fs_dev_file_state_t *)fd; if(!file->dev) { @@ -284,7 +284,7 @@ static ssize_t fs_dev_write_r (struct _reent *r, int fd, const char *ptr, size_t return done; } -static ssize_t fs_dev_read_r (struct _reent *r, int fd, char *ptr, size_t len) +static ssize_t fs_dev_read_r (struct _reent *r, void *fd, char *ptr, size_t len) { fs_dev_file_state_t *file = (fs_dev_file_state_t *)fd; if(!file->dev) { @@ -330,7 +330,7 @@ static ssize_t fs_dev_read_r (struct _reent *r, int fd, char *ptr, size_t len) } -static int fs_dev_fstat_r (struct _reent *r, int fd, struct stat *st) +static int fs_dev_fstat_r (struct _reent *r, void *fd, struct stat *st) { fs_dev_file_state_t *file = (fs_dev_file_state_t *)fd; if(!file->dev) { @@ -344,7 +344,7 @@ static int fs_dev_fstat_r (struct _reent *r, int fd, struct stat *st) memset(st, 0, sizeof(struct stat)); fileStat_s stats; - int result = IOSUHAX_FSA_StatFile(file->dev->fsaFd, fd, &stats); + int result = IOSUHAX_FSA_StatFile(file->dev->fsaFd, (int)fd, &stats); if(result != 0) { r->_errno = result; OSUnlockMutex(file->dev->pMutex); @@ -368,7 +368,7 @@ static int fs_dev_fstat_r (struct _reent *r, int fd, struct stat *st) return 0; } -static int fs_dev_ftruncate_r (struct _reent *r, int fd, off_t len) +static int fs_dev_ftruncate_r (struct _reent *r, void *fd, off_t len) { fs_dev_file_state_t *file = (fs_dev_file_state_t *)fd; if(!file->dev) { @@ -381,7 +381,7 @@ static int fs_dev_ftruncate_r (struct _reent *r, int fd, off_t len) return -1; } -static int fs_dev_fsync_r (struct _reent *r, int fd) +static int fs_dev_fsync_r (struct _reent *r, void *fd) { fs_dev_file_state_t *file = (fs_dev_file_state_t *)fd; if(!file->dev) {