From 866b99d6c4b5cbcb210d38258b16a32da7a81420 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Sun, 23 Nov 2014 18:29:30 +0000 Subject: [PATCH 1/1] [gandr]: seekf: pass newPos, not &newPos to gd_seek, because newPos is already a pointer --- platform/gandr/functions/stdio/_PDCLIB_fileops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/gandr/functions/stdio/_PDCLIB_fileops.c b/platform/gandr/functions/stdio/_PDCLIB_fileops.c index 9dff0ce..286fae6 100644 --- a/platform/gandr/functions/stdio/_PDCLIB_fileops.c +++ b/platform/gandr/functions/stdio/_PDCLIB_fileops.c @@ -11,7 +11,7 @@ #include #include -static bool readf( _PDCLIB_fd_t fd, void * buf, size_t length, +static bool readf( _PDCLIB_fd_t fd, void * buf, size_t length, size_t * numBytesRead ) { int rv = gd_read(fd.pointer, buf, length, numBytesRead ); @@ -19,7 +19,7 @@ static bool readf( _PDCLIB_fd_t fd, void * buf, size_t length, return rv >= 0; } -static bool writef( _PDCLIB_fd_t fd, const void * buf, size_t length, +static bool writef( _PDCLIB_fd_t fd, const void * buf, size_t length, size_t * numBytesWritten ) { int rv = gd_write(fd.pointer, buf, length, numBytesWritten ); @@ -30,7 +30,7 @@ static bool writef( _PDCLIB_fd_t fd, const void * buf, size_t length, static bool seekf( _PDCLIB_fd_t fd, int_fast64_t offset, int whence, int_fast64_t* newPos ) { - int rv = gd_seek( fd.pointer, offset, whence, &newPos ); + int rv = gd_seek( fd.pointer, offset, whence, newPos ); return rv >= 0; } -- 2.40.0