forked from len0rd/rockbox
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
|
@ -62,10 +62,10 @@ void init_screen(void)
|
|||
|
||||
/* global vars for pl_malloc() */
|
||||
void *bufptr;
|
||||
ssize_t bufleft;
|
||||
size_t bufleft;
|
||||
|
||||
/* simple function to "allocate" memory in pluginbuffer. */
|
||||
void *pl_malloc(ssize_t size)
|
||||
void *pl_malloc(size_t size)
|
||||
{
|
||||
void *ptr;
|
||||
ptr = bufptr;
|
||||
|
@ -85,7 +85,7 @@ void *pl_malloc(ssize_t size)
|
|||
/* init function for pl_malloc() */
|
||||
void pl_malloc_init(void)
|
||||
{
|
||||
bufptr = rb->plugin_get_buffer((size_t *)&bufleft);
|
||||
bufptr = rb->plugin_get_buffer(&bufleft);
|
||||
}
|
||||
|
||||
/* for endian problems */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue