diff mbox

ubiformat, ubinize: fix more 64-bit image sequence number confusion

Message ID 1253710887-16731-2-git-send-email-mroth@nessie.de
State Accepted
Commit 145ee7ab6fc9c4ccb6f3497d5fb112ed6f696433
Headers show

Commit Message

Michael Roth Sept. 23, 2009, 1:01 p.m. UTC
The sequence number is only 32 bit as the strtoul() function.

Signed-off-by: Michael Roth <mroth@nessie.de>
---
 ubi-utils/src/ubiformat.c |    2 +-
 ubi-utils/src/ubinize.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c
index 345593c..bed0339 100644
--- a/ubi-utils/src/ubiformat.c
+++ b/ubi-utils/src/ubiformat.c
@@ -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)
diff --git a/ubi-utils/src/ubinize.c b/ubi-utils/src/ubinize.c
index dd8d3ed..a46833c 100644
--- a/ubi-utils/src/ubinize.c
+++ b/ubi-utils/src/ubinize.c
@@ -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)