summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/pe_get_image_meta.c5
-rw-r--r--src/output/pe_output_export_symbols.c2
-rw-r--r--src/output/pe_output_import_libraries.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c
index 65f7922..8da2c90 100644
--- a/src/logic/pe_get_image_meta.c
+++ b/src/logic/pe_get_image_meta.c
@@ -14,7 +14,7 @@
static int pe_free_image_meta_impl(struct pe_image_meta * meta, int status)
{
- unsigned i;
+ int i;
if (meta) {
for (i=0; i<meta->summary.nimplibs; i++)
@@ -60,7 +60,8 @@ int pe_get_block_section_index(const struct pe_image_meta * m, const struct pe_b
int pe_get_image_meta(const struct pe_raw_image * image, struct pe_image_meta ** meta)
{
- int i,j,s,status;
+ int i,s,status;
+ unsigned j;
struct pe_image_meta * m;
char * base = image->addr;
diff --git a/src/output/pe_output_export_symbols.c b/src/output/pe_output_export_symbols.c
index 94d0037..642d539 100644
--- a/src/output/pe_output_export_symbols.c
+++ b/src/output/pe_output_export_symbols.c
@@ -37,7 +37,7 @@ int pe_output_export_symbols(
FILE * ftmp;
uint32_t offset;
uint32_t * symrva;
- int i;
+ unsigned i;
if (!m->hedata)
return 0;
diff --git a/src/output/pe_output_import_libraries.c b/src/output/pe_output_import_libraries.c
index 3b71018..a2eb01b 100644
--- a/src/output/pe_output_import_libraries.c
+++ b/src/output/pe_output_import_libraries.c
@@ -47,7 +47,8 @@ int pe_output_import_libraries(
FILE * fout)
{
FILE * ftmp;
- int i,j;
+ int i;
+ unsigned j;
if (!m->summary.nimplibs)
return 0;