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/firmware_flash.c | |
parent | 6027b9160339bcc9efc80d76b095057e2524be8b (diff) |
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/firmware_flash.c')
-rw-r--r-- | apps/plugins/firmware_flash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c index 6718d58e6a..43ed7a87d9 100644 --- a/apps/plugins/firmware_flash.c +++ b/apps/plugins/firmware_flash.c @@ -597,7 +597,7 @@ void DoUserDialog(char* filename) char default_filename[32]; int button; int rc; /* generic return code */ - ssize_t memleft; + size_t memleft; tCheckROM result; bool is_romless; @@ -644,7 +644,7 @@ void DoUserDialog(char* filename) } /* "allocate" memory */ - sector = rb->plugin_get_buffer((size_t *)&memleft); + sector = rb->plugin_get_buffer(&memleft); if (memleft < SEC_SIZE) /* need buffer for a flash sector */ { rb->splash(HZ*3, "Out of memory"); @@ -837,7 +837,7 @@ void DoUserDialog(char* filename) char default_filename[32]; int button; int rc; /* generic return code */ - ssize_t memleft; + size_t memleft; tCheckROM result; bool is_romless; @@ -884,7 +884,7 @@ void DoUserDialog(char* filename) } /* "allocate" memory */ - sector = rb->plugin_get_buffer((size_t *)&memleft); + sector = rb->plugin_get_buffer(&memleft); if (memleft < SEC_SIZE) /* need buffer for a flash sector */ { rb->splash(HZ*3, "Out of memory"); |