summaryrefslogtreecommitdiff
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-06-14 17:41:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-06-14 17:41:21 +0000
commit39b8f7c0f7692e5971534a1571c92b91933e5882 (patch)
tree63019a820d5dfc51143df83afa0f41100545653a /tools/firmware-utils
parent626356744406ec597f6ec5646c11f746e16538b9 (diff)
downloadmtk-20170518-39b8f7c0f7692e5971534a1571c92b91933e5882.zip
mtk-20170518-39b8f7c0f7692e5971534a1571c92b91933e5882.tar.gz
mtk-20170518-39b8f7c0f7692e5971534a1571c92b91933e5882.tar.bz2
firmware-tools/ptgen: use stdint types for struct pte
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45957
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r--tools/firmware-utils/src/ptgen.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c
index 68bad6f..2b7ec25 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 {