From 1e9b0691a9c52f8b56abc10a214a8aaa228b361b Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 20 Apr 2008 18:14:37 +0300 Subject: ubi-utils: various clean-ups and preparations This patch introduces many clean-ups, nicifications and preparations to the following ubiformat utility. There are also fixes. Signed-off-by: Artem Bityutskiy --- ubi-utils/new-utils/src/ubiattach.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ubi-utils/new-utils/src/ubiattach.c') diff --git a/ubi-utils/new-utils/src/ubiattach.c b/ubi-utils/new-utils/src/ubiattach.c index 04a2f9c..3e19eca 100644 --- a/ubi-utils/new-utils/src/ubiattach.c +++ b/ubi-utils/new-utils/src/ubiattach.c @@ -84,7 +84,7 @@ static int parse_opt(int argc, char * const argv[]) int key; char *endp; - key = getopt_long(argc, argv, "m:d:OhV", long_options, NULL); + key = getopt_long(argc, argv, "m:d:O:hV", long_options, NULL); if (key == -1) break; @@ -103,7 +103,7 @@ static int parse_opt(int argc, char * const argv[]) break; - case 'o': + case 'O': args.vidoffs = strtoul(optarg, &endp, 0); if (*endp != '\0' || endp == optarg || args.vidoffs <= 0) return errmsg("bad VID header offset: \"%s\"", optarg); -- cgit v1.2.3