summaryrefslogtreecommitdiff
path: root/apps/plugins/firmware_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/firmware_flash.c')
-rw-r--r--apps/plugins/firmware_flash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c
index c1cd3b2fe9..b841be91d2 100644
--- a/apps/plugins/firmware_flash.c
+++ b/apps/plugins/firmware_flash.c
@@ -640,7 +640,7 @@ void DoUserDialog(char* filename)
640 char default_filename[32]; 640 char default_filename[32];
641 int button; 641 int button;
642 int rc; /* generic return code */ 642 int rc; /* generic return code */
643 int memleft; 643 ssize_t memleft;
644 tCheckROM result; 644 tCheckROM result;
645 bool is_romless; 645 bool is_romless;
646 646
@@ -687,7 +687,7 @@ void DoUserDialog(char* filename)
687 } 687 }
688 688
689 /* "allocate" memory */ 689 /* "allocate" memory */
690 sector = rb->plugin_get_buffer(&memleft); 690 sector = rb->plugin_get_buffer((size_t *)&memleft);
691 if (memleft < SEC_SIZE) /* need buffer for a flash sector */ 691 if (memleft < SEC_SIZE) /* need buffer for a flash sector */
692 { 692 {
693 rb->splash(HZ*3, "Out of memory"); 693 rb->splash(HZ*3, "Out of memory");
@@ -927,7 +927,7 @@ void DoUserDialog(char* filename)
927 } 927 }
928 928
929 /* "allocate" memory */ 929 /* "allocate" memory */
930 sector = rb->plugin_get_buffer(&memleft); 930 sector = rb->plugin_get_buffer((size_t *)&memleft);
931 if (memleft < SEC_SIZE) /* need buffer for a flash sector */ 931 if (memleft < SEC_SIZE) /* need buffer for a flash sector */
932 { 932 {
933 rb->splash(HZ*3, "Out of memory"); 933 rb->splash(HZ*3, "Out of memory");