diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-06-30 18:17:34 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-30 18:45:07 -0400 |
commit | 423350ec4dfba02dad9b91d5560b192cc51b8ad0 (patch) | |
tree | 2d162d21514961b2c046895c13daaab5e6b45f43 /apps/plugins/xrick/system/sysfile_rockbox.c | |
parent | 102c3742487dba76ec72d5f56a2c3041344b2d68 (diff) | |
download | rockbox-423350ec4dfba02dad9b91d5560b192cc51b8ad0.tar.gz rockbox-423350ec4dfba02dad9b91d5560b192cc51b8ad0.zip |
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
Diffstat (limited to 'apps/plugins/xrick/system/sysfile_rockbox.c')
-rw-r--r-- | apps/plugins/xrick/system/sysfile_rockbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/xrick/system/sysfile_rockbox.c b/apps/plugins/xrick/system/sysfile_rockbox.c index 72227d5301..06227caec1 100644 --- a/apps/plugins/xrick/system/sysfile_rockbox.c +++ b/apps/plugins/xrick/system/sysfile_rockbox.c | |||
@@ -64,7 +64,7 @@ void sysfile_clearRootPath() | |||
64 | */ | 64 | */ |
65 | file_t sysfile_open(const char *name) | 65 | file_t sysfile_open(const char *name) |
66 | { | 66 | { |
67 | int fd; | 67 | long fd; |
68 | 68 | ||
69 | size_t fullPathLength = rb->strlen(rootPath) + rb->strlen(name) + 2; | 69 | size_t fullPathLength = rb->strlen(rootPath) + rb->strlen(name) + 2; |
70 | char *fullPath = sysmem_push(fullPathLength); | 70 | char *fullPath = sysmem_push(fullPathLength); |
@@ -97,7 +97,7 @@ file_t sysfile_open(const char *name) | |||
97 | */ | 97 | */ |
98 | int sysfile_read(file_t file, void *buf, size_t size, size_t count) | 98 | int sysfile_read(file_t file, void *buf, size_t size, size_t count) |
99 | { | 99 | { |
100 | int fd = (int)file; | 100 | long fd = (long)file; |
101 | return (rb->read(fd, buf, size * count) / size); | 101 | return (rb->read(fd, buf, size * count) / size); |
102 | } | 102 | } |
103 | 103 | ||
@@ -106,7 +106,7 @@ int sysfile_read(file_t file, void *buf, size_t size, size_t count) | |||
106 | */ | 106 | */ |
107 | int sysfile_seek(file_t file, long offset, int origin) | 107 | int sysfile_seek(file_t file, long offset, int origin) |
108 | { | 108 | { |
109 | int fd = (int)file; | 109 | long fd = (long)file; |
110 | return rb->lseek(fd, offset, origin); | 110 | return rb->lseek(fd, offset, origin); |
111 | } | 111 | } |
112 | 112 | ||
@@ -115,7 +115,7 @@ int sysfile_seek(file_t file, long offset, int origin) | |||
115 | */ | 115 | */ |
116 | void sysfile_close(file_t file) | 116 | void sysfile_close(file_t file) |
117 | { | 117 | { |
118 | int fd = (int)file; | 118 | long fd = (long)file; |
119 | rb->close(fd); | 119 | rb->close(fd); |
120 | } | 120 | } |
121 | 121 | ||