diff options
author | Nikias Bassen | 2013-12-01 21:52:19 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-12-01 21:52:19 +0100 |
commit | d102418177732716a2dc39f1dcd61be9cab92362 (patch) | |
tree | e0fbeb890fecfd84e0f50a4041d2a799a10eb2fe /src/fls.c | |
parent | 9e44c2ce4aa8745b8144e3b7f2658869f3776f59 (diff) | |
download | idevicerestore-d102418177732716a2dc39f1dcd61be9cab92362.tar.gz idevicerestore-d102418177732716a2dc39f1dcd61be9cab92362.tar.bz2 |
fls: removed unused variable and fix variable signedness
Diffstat (limited to 'src/fls.c')
-rw-r--r-- | src/fls.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) { |