summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) {