summaryrefslogtreecommitdiff
path: root/src/set.h
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-14 21:30:38 +0100
committerStephen Warren <swarren@nvidia.com>2017-10-03 11:05:35 -0600
commit3b3c3cccf0640326229935be5ff702ac948fd51b (patch)
treea29290fefe977d947b3ff717ace9a165d4dd460c /src/set.h
parent64045f993c2cd8989838aeaad3d22107d96d5596 (diff)
downloadnvidia-cbootimage-3b3c3cccf0640326229935be5ff702ac948fd51b.tar.gz
Use C99 uintXX_t instead of implementation-specific u_intXX_t types
The u_intXX_t types are implementation-specific and not part of a standard. As an example, they are not provided by the musl C library. Therefore, this commit switches cbootimage to use the C99 uintXX_t types. This commit has been produced by: 1. Running: find . -name '*.[ch]' | xargs sed -i 's%u_int\([0-9]*\)_t%uint\1_t%g' 2. Adding a #include <stdint.h> in cbootimage.h The result has been compile tested with the musl C library. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> (swarren, validated "objdump -d cbootimage" is identical before/after) Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'src/set.h')
-rw-r--r--src/set.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/set.h b/src/set.h
index b38d4ce..8548feb 100644
--- a/src/set.h
+++ b/src/set.h
@@ -32,14 +32,14 @@
int
set_bootloader(build_image_context *context,
char *filename,
- u_int32_t load_addr,
- u_int32_t entry_point);
+ uint32_t load_addr,
+ uint32_t entry_point);
int
set_mts_image(build_image_context *context,
char *filename,
- u_int32_t load_addr,
- u_int32_t entry_point);
+ uint32_t load_addr,
+ uint32_t entry_point);
int
set_rsa_param(build_image_context *context,
@@ -53,10 +53,10 @@ context_set_value(build_image_context *context,
int
read_from_image(char *filename,
- u_int32_t offset,
- u_int32_t max_size,
- u_int8_t **Image,
- u_int32_t *actual_size,
+ uint32_t offset,
+ uint32_t max_size,
+ uint8_t **Image,
+ uint32_t *actual_size,
file_type f_type);
#endif /* #ifndef INCLUDED_SET_H */