diff options
author | Marc Schink <dev@zapb.de> | 2020-11-03 16:11:48 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-11-07 20:52:00 +0000 |
commit | 73746d78b7bd582bab26cebdcf78299b8da99a62 (patch) | |
tree | 27cbee02d9f3699bbac688f7d0cca6a216266246 /src/target/image.h | |
parent | 6dbfdcd00f190b79f24a7c231137fb5eea52bc95 (diff) | |
download | riscv-openocd-73746d78b7bd582bab26cebdcf78299b8da99a62.zip riscv-openocd-73746d78b7bd582bab26cebdcf78299b8da99a62.tar.gz riscv-openocd-73746d78b7bd582bab26cebdcf78299b8da99a62.tar.bz2 |
target/image: Use proper data types
While at it, fix some coding style issues.
Change-Id: Id521394d89e0bf787a6f812701c2cc0fe7e4e63f
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/5919
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target/image.h')
-rw-r--r-- | src/target/image.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/image.h b/src/target/image.h index 9907a5f..765d290 100644 --- a/src/target/image.h +++ b/src/target/image.h @@ -55,11 +55,11 @@ struct imagesection { struct image { enum image_type type; /* image type (plain, ihex, ...) */ void *type_private; /* type private data */ - int num_sections; /* number of sections contained in the image */ + unsigned int num_sections; /* number of sections contained in the image */ struct imagesection *sections; /* array of sections */ - int base_address_set; /* whether the image has a base address set (for relocation purposes) */ + bool base_address_set; /* whether the image has a base address set (for relocation purposes) */ long long base_address; /* base address, if one is set */ - int start_address_set; /* whether the image has a start address (entry point) associated */ + bool start_address_set; /* whether the image has a start address (entry point) associated */ uint32_t start_address; /* start address, if one is set */ }; |