app: aboot: Changes to avoid warnings during compilation
Changes to solve warnings for enabling Werror flag in LK.
Change-Id: Id589b2d5af1d465dda5cd72202b009c13afff12a
diff --git a/app/aboot/recovery.c b/app/aboot/recovery.c
index 71ee2ef..0c55e9b 100644
--- a/app/aboot/recovery.c
+++ b/app/aboot/recovery.c
@@ -42,6 +42,7 @@
#include <target.h>
#include <partition_parser.h>
#include <mmc.h>
+#include <malloc.h>
#include "recovery.h"
#include "bootimg.h"
@@ -393,7 +394,7 @@
unsigned char data[size];
int index = INVALID_PTN;
- index = partition_get_index((unsigned char *) ptn_name);
+ index = partition_get_index((const char *) ptn_name);
ptn = partition_get_offset(index);
mmc_set_lun(partition_get_lun(index));
if(ptn == 0) {
@@ -416,7 +417,7 @@
int index = INVALID_PTN;
size = mmc_get_device_blocksize();
- index = partition_get_index((unsigned char *) ptn_name);
+ index = partition_get_index((const char *) ptn_name);
ptn = partition_get_offset(index);
mmc_set_lun(partition_get_lun(index));
if(ptn == 0) {