From: nbd Date: Sun, 14 Jun 2015 17:41:21 +0000 (+0000) Subject: firmware-tools/ptgen: use stdint types for struct pte X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=9410f403b88e1b4761d89d6315b2588306e1fcb9;p=openwrt.git firmware-tools/ptgen: use stdint types for struct pte Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45957 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 #include #include +#include #include #include #include @@ -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 {