mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-23 12:02:39 -05:00
xrick: Fix various errors/warnings
* Piles of warnings in miniz when built with modern toolchain * Pointer arithematic error in PRNG * Casting between int and void * for file descriptors * Warning on non-color targets Remaining: * Failure on XRGB888 LCDs due to issue with core LCD macros * Failure on interleaved greyscale LCDs (?) * HTML manual build failure Change-Id: Ibf6d2c001ec8daf583731d5da15b86b5352773e7
This commit is contained in:
parent
102c374248
commit
423350ec4d
5 changed files with 16 additions and 8 deletions
|
|
@ -64,7 +64,7 @@ void sysfile_clearRootPath()
|
|||
*/
|
||||
file_t sysfile_open(const char *name)
|
||||
{
|
||||
int fd;
|
||||
long fd;
|
||||
|
||||
size_t fullPathLength = rb->strlen(rootPath) + rb->strlen(name) + 2;
|
||||
char *fullPath = sysmem_push(fullPathLength);
|
||||
|
|
@ -97,7 +97,7 @@ file_t sysfile_open(const char *name)
|
|||
*/
|
||||
int sysfile_read(file_t file, void *buf, size_t size, size_t count)
|
||||
{
|
||||
int fd = (int)file;
|
||||
long fd = (long)file;
|
||||
return (rb->read(fd, buf, size * count) / size);
|
||||
}
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ int sysfile_read(file_t file, void *buf, size_t size, size_t count)
|
|||
*/
|
||||
int sysfile_seek(file_t file, long offset, int origin)
|
||||
{
|
||||
int fd = (int)file;
|
||||
long fd = (long)file;
|
||||
return rb->lseek(fd, offset, origin);
|
||||
}
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ int sysfile_seek(file_t file, long offset, int origin)
|
|||
*/
|
||||
void sysfile_close(file_t file)
|
||||
{
|
||||
int fd = (int)file;
|
||||
long fd = (long)file;
|
||||
rb->close(fd);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue