aboutsummaryrefslogtreecommitdiff
path: root/miscutils/ubi_tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/ubi_tools.c')
-rw-r--r--miscutils/ubi_tools.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c
index 123551e94..d142d1144 100644
--- a/miscutils/ubi_tools.c
+++ b/miscutils/ubi_tools.c
@@ -145,20 +145,17 @@ int ubi_tools_main(int argc UNUSED_PARAM, char **argv)
145#define OPTION_a (1 << 5) 145#define OPTION_a (1 << 5)
146#define OPTION_t (1 << 6) 146#define OPTION_t (1 << 6)
147 if (do_mkvol) { 147 if (do_mkvol) {
148 opt_complementary = "-1"; 148 opts = getopt32(argv, "^" "md:+n:+N:s:a:+t:O:+" "\0" "-1",
149 opts = getopt32(argv, "md:+n:+N:s:a:+t:O:+",
150 &dev_num, &vol_id, 149 &dev_num, &vol_id,
151 &vol_name, &size_bytes_str, &alignment, &type, 150 &vol_name, &size_bytes_str, &alignment, &type,
152 &vid_hdr_offset 151 &vid_hdr_offset
153 ); 152 );
154 } else 153 } else
155 if (do_update) { 154 if (do_update) {
156 opt_complementary = "-1"; 155 opts = getopt32(argv, "^" "s:at" "\0" "-1", &size_bytes_str);
157 opts = getopt32(argv, "s:at", &size_bytes_str);
158 opts *= OPTION_s; 156 opts *= OPTION_s;
159 } else { 157 } else {
160 opt_complementary = "-1"; 158 opts = getopt32(argv, "^" "m:+d:+n:+N:s:a:+t:" "\0" "-1",
161 opts = getopt32(argv, "m:+d:+n:+N:s:a:+t:",
162 &mtd_num, &dev_num, &vol_id, 159 &mtd_num, &dev_num, &vol_id,
163 &vol_name, &size_bytes_str, &alignment, &type 160 &vol_name, &size_bytes_str, &alignment, &type
164 ); 161 );