aboutsummaryrefslogtreecommitdiff
path: root/miscutils/flash_eraseall.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/flash_eraseall.c')
-rw-r--r--miscutils/flash_eraseall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c
index af9ebea24..a6ce41f27 100644
--- a/miscutils/flash_eraseall.c
+++ b/miscutils/flash_eraseall.c
@@ -17,6 +17,7 @@
17//config: This utility is used to erase the whole MTD device. 17//config: This utility is used to erase the whole MTD device.
18 18
19//applet:IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP)) 19//applet:IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP))
20/* not NOEXEC: if flash operation stalls, use less memory in "hung" process */
20 21
21//kbuild:lib-$(CONFIG_FLASH_ERASEALL) += flash_eraseall.o 22//kbuild:lib-$(CONFIG_FLASH_ERASEALL) += flash_eraseall.o
22 23
@@ -81,8 +82,7 @@ int flash_eraseall_main(int argc UNUSED_PARAM, char **argv)
81 unsigned int flags; 82 unsigned int flags;
82 char *mtd_name; 83 char *mtd_name;
83 84
84 opt_complementary = "=1"; 85 flags = getopt32(argv, "^" "jNq" "\0" "=1");
85 flags = getopt32(argv, "jNq");
86 86
87 mtd_name = argv[optind]; 87 mtd_name = argv[optind];
88 fd = xopen(mtd_name, O_RDWR); 88 fd = xopen(mtd_name, O_RDWR);