diff options
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) | |||
597 | char default_filename[32]; | 597 | char default_filename[32]; |
598 | int button; | 598 | int button; |
599 | int rc; /* generic return code */ | 599 | int rc; /* generic return code */ |
600 | ssize_t memleft; | 600 | size_t memleft; |
601 | tCheckROM result; | 601 | tCheckROM result; |
602 | bool is_romless; | 602 | bool is_romless; |
603 | 603 | ||
@@ -644,7 +644,7 @@ void DoUserDialog(char* filename) | |||
644 | } | 644 | } |
645 | 645 | ||
646 | /* "allocate" memory */ | 646 | /* "allocate" memory */ |
647 | sector = rb->plugin_get_buffer((size_t *)&memleft); | 647 | sector = rb->plugin_get_buffer(&memleft); |
648 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ | 648 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ |
649 | { | 649 | { |
650 | rb->splash(HZ*3, "Out of memory"); | 650 | rb->splash(HZ*3, "Out of memory"); |
@@ -837,7 +837,7 @@ void DoUserDialog(char* filename) | |||
837 | char default_filename[32]; | 837 | char default_filename[32]; |
838 | int button; | 838 | int button; |
839 | int rc; /* generic return code */ | 839 | int rc; /* generic return code */ |
840 | ssize_t memleft; | 840 | size_t memleft; |
841 | tCheckROM result; | 841 | tCheckROM result; |
842 | bool is_romless; | 842 | bool is_romless; |
843 | 843 | ||
@@ -884,7 +884,7 @@ void DoUserDialog(char* filename) | |||
884 | } | 884 | } |
885 | 885 | ||
886 | /* "allocate" memory */ | 886 | /* "allocate" memory */ |
887 | sector = rb->plugin_get_buffer((size_t *)&memleft); | 887 | sector = rb->plugin_get_buffer(&memleft); |
888 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ | 888 | if (memleft < SEC_SIZE) /* need buffer for a flash sector */ |
889 | { | 889 | { |
890 | rb->splash(HZ*3, "Out of memory"); | 890 | rb->splash(HZ*3, "Out of memory"); |