diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-06-14 17:41:21 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-06-14 17:41:21 +0000 |
commit | cdb2823565598c9a6b8213055f7ebf3b9a3a89ac (patch) | |
tree | 943efe4c553a081c2688edc9dea8d8b3ef71c2bf /tools/firmware-utils | |
parent | 1e517184a24b2b9d8da28cca11959c4bc8500d92 (diff) | |
download | master-187ad058-cdb2823565598c9a6b8213055f7ebf3b9a3a89ac.tar.gz master-187ad058-cdb2823565598c9a6b8213055f7ebf3b9a3a89ac.tar.bz2 master-187ad058-cdb2823565598c9a6b8213055f7ebf3b9a3a89ac.zip |
firmware-tools/ptgen: use stdint types for struct pte
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45957 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r-- | tools/firmware-utils/src/ptgen.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c index 68bad6fd97..2b7ec25e48 100644 --- a/tools/firmware-utils/src/ptgen.c +++ b/tools/firmware-utils/src/ptgen.c @@ -26,6 +26,7 @@ #include <unistd.h> #include <stdlib.h> #include <stdio.h> +#include <stdint.h> #include <ctype.h> #include <fcntl.h> #include <stdint.h> @@ -39,13 +40,13 @@ #endif /* Partition table entry */ -struct pte { - unsigned char active; - unsigned char chs_start[3]; - unsigned char type; - unsigned char chs_end[3]; - unsigned int start; - unsigned int length; +struct pte { + uint8_t active; + uint8_t chs_start[3]; + uint8_t type; + uint8_t chs_end[3]; + uint32_t start; + uint32_t length; }; struct partinfo { |