mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Fix size_t handling in plugin_get_buffer()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25884 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6027b91603
commit
8d4ff638b9
14 changed files with 42 additions and 36 deletions
|
@ -409,13 +409,13 @@ int load_all_levels(void)
|
|||
{
|
||||
int linecnt = 0;
|
||||
int fd;
|
||||
ssize_t size;
|
||||
size_t size;
|
||||
char buf[64]; /* Larger than WIDTH, to allow for whitespace after the
|
||||
lines */
|
||||
|
||||
/* Init the level_cache pointer and
|
||||
calculate how many levels that will fit */
|
||||
level_cache = rb->plugin_get_buffer((size_t *)&size);
|
||||
level_cache = rb->plugin_get_buffer(&size);
|
||||
max_levels = size / (HEIGHT*WIDTH);
|
||||
|
||||
num_levels = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue