diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2010-05-07 19:27:42 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2010-05-07 19:27:42 +0000 |
| commit | 8d4ff638b9a79abcefe538eef8f1933c0c0decf9 (patch) | |
| tree | c1071be69e9f794318e6b833e0cb00d0124e77c6 /apps/plugins/rockbox_flash.c | |
| parent | 6027b9160339bcc9efc80d76b095057e2524be8b (diff) | |
| download | rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.zip rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.gz rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.bz2 rockbox-8d4ff638b9a79abcefe538eef8f1933c0c0decf9.tar.xz | |
Fix size_t handling in plugin_get_buffer()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25884 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockbox_flash.c')
| -rw-r--r-- | apps/plugins/rockbox_flash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/rockbox_flash.c b/apps/plugins/rockbox_flash.c index 4bdb0d2..17c5e51 100644 --- a/apps/plugins/rockbox_flash.c +++ b/apps/plugins/rockbox_flash.c @@ -568,7 +568,7 @@ static void DoUserDialog(char* filename) int rc; /* generic return code */ UINT32 space, aligned_size, true_size; UINT8* pos; - ssize_t memleft; + size_t memleft; unsigned bl_version; bool show_greet = false; @@ -587,7 +587,7 @@ static void DoUserDialog(char* filename) } /* "allocate" memory */ - sector = rb->plugin_get_buffer((size_t *)&memleft); + sector = rb->plugin_get_buffer(&memleft); if (memleft < SECTORSIZE) /* need buffer for a flash sector */ { rb->splash(HZ*3, "Out of memory"); @@ -772,7 +772,7 @@ static void DoUserDialog(char* filename) int rc; /* generic return code */ UINT32 space, aligned_size, true_size; UINT8* pos; - ssize_t memleft; + size_t memleft; unsigned bl_version; /* this can only work if Rockbox runs in DRAM, not flash ROM */ @@ -790,7 +790,7 @@ static void DoUserDialog(char* filename) } /* "allocate" memory */ - sector = rb->plugin_get_buffer((size_t *)&memleft); + sector = rb->plugin_get_buffer(&memleft); if (memleft < SECTORSIZE) /* need buffer for a flash sector */ { rb->splash(HZ*3, "Out of memory"); |