Cleaned some compiler warnings

This commit is contained in:
2020-01-12 13:09:08 -05:00
parent 660ae546f8
commit a0e89e76e3

View File

@@ -13,7 +13,7 @@
struct payload struct payload
{ {
PAYLOAD_T type; PAYLOAD_T type;
unsigned char *data; const unsigned char *data;
int len; int len;
long long install_base; long long install_base;
@@ -24,7 +24,7 @@ struct payload
struct payload *get_payload(PAYLOAD_T p) struct payload *get_payload(PAYLOAD_T p)
{ {
struct payload *res; struct payload *res;
unsigned char *pl; const unsigned char *pl;
switch(p) switch(p)
{ {
@@ -144,7 +144,7 @@ int install_payload(struct pwned_device *dev, PAYLOAD_T p, LOCATION_T loc)
return CHECKM8_FAIL_INVARGS; return CHECKM8_FAIL_INVARGS;
} }
resp = dev_write_memory(dev, addr, pl->data, pl->len); resp = dev_write_memory(dev, addr, (unsigned char *) pl->data, pl->len);
if(IS_CHECKM8_FAIL(resp->ret)) if(IS_CHECKM8_FAIL(resp->ret))
{ {
free_dev_cmd_resp(resp); free_dev_cmd_resp(resp);