summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-01 21:52:19 +0100
committerGravatar Nikias Bassen2013-12-01 21:52:19 +0100
commitd102418177732716a2dc39f1dcd61be9cab92362 (patch)
treee0fbeb890fecfd84e0f50a4041d2a799a10eb2fe
parent9e44c2ce4aa8745b8144e3b7f2658869f3776f59 (diff)
downloadidevicerestore-d102418177732716a2dc39f1dcd61be9cab92362.tar.gz
idevicerestore-d102418177732716a2dc39f1dcd61be9cab92362.tar.bz2
fls: removed unused variable and fix variable signedness
-rw-r--r--src/fls.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fls.c b/src/fls.c
index 0970a8e..5d7fbda 100644
--- a/src/fls.c
+++ b/src/fls.c
@@ -35,7 +35,6 @@ static void fls_parse_elements(fls_file* fls)
return;
}
uint32_t offset = 0;
- uint32_t max = fls->size;
fls->max_elements = 32;
fls->elements = (fls_element**)malloc(sizeof(fls_element*) * fls->max_elements);
@@ -159,7 +158,7 @@ int fls_update_sig_blob(fls_file* fls, const unsigned char* sigdata, unsigned in
uint32_t oldsiglen = datasize - sigoffset;
uint32_t newsize = fls->size - oldsiglen + siglen;
- int i;
+ unsigned int i;
uint32_t offset = 0;
void* newdata = malloc(newsize);
if (!newdata) {
@@ -257,7 +256,7 @@ int fls_insert_ticket(fls_file* fls, const unsigned char* data, unsigned int siz
padding = 4-(size%4);
}
uint32_t newsize = fls->size + size + padding;
- int i;
+ unsigned int i;
uint32_t offset = 0;
void* newdata = malloc(newsize);
if (!newdata) {