]> www.infradead.org Git - mtd-utils.git/commitdiff
ubiformat/ubinize: fix more 64-bit image sequence number confusion
authorMichael Roth <mroth@nessie.de>
Wed, 23 Sep 2009 13:01:26 +0000 (15:01 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 28 Sep 2009 08:16:39 +0000 (11:16 +0300)
The sequence number is only 32 bit as the strtoul() function.

Signed-off-by: Michael Roth <mroth@nessie.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/src/ubiformat.c
ubi-utils/src/ubinize.c

index 345593c17eb031f3a5b8e87316e70270986aa378..bed033953724955319abad6a9f773776b5ea58a8 100644 (file)
@@ -134,7 +134,7 @@ static int parse_opt(int argc, char * const argv[])
        while (1) {
                int key;
                char *endp;
-               unsigned long long image_seq;
+               unsigned long int image_seq;
 
                key = getopt_long(argc, argv, "nh?Vyqve:x:s:O:f:S:", long_options, NULL);
                if (key == -1)
index dd8d3ed867e0b291d31fd2168e41c312437463e7..a46833c86a429eb5e779c243fca17bef14804fdb 100644 (file)
@@ -161,7 +161,7 @@ static int parse_opt(int argc, char * const argv[])
        while (1) {
                int key;
                char *endp;
-               unsigned long long image_seq;
+               unsigned long int image_seq;
 
                key = getopt_long(argc, argv, "o:p:m:s:O:e:x:Q:vhV", long_options, NULL);
                if (key == -1)