diff options
author | NeilBrown <neilb@suse.de> | 2012-07-09 09:14:16 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-07-09 09:14:16 +0200 |
commit | 5187a385870950d779b6434b2d2982914367f638 (patch) | |
tree | d5198a55251b38ad706c88273acb878770b44261 /mdadm.h | |
parent | main: extract more functions. (diff) | |
download | mdadm-5187a385870950d779b6434b2d2982914367f638.tar.xz mdadm-5187a385870950d779b6434b2d2982914367f638.zip |
Help: use an array to choose which help matches which mode.
Looks cleaner than a big switch statement.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to '')
-rw-r--r-- | mdadm.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -264,6 +264,7 @@ enum mode { GROW, INCREMENTAL, AUTODETECT, + mode_count }; extern char short_options[]; @@ -271,6 +272,7 @@ extern char short_bitmap_options[]; extern char short_bitmap_auto_options[]; extern struct option long_options[]; extern char Version[], Usage[], Help[], OptionHelp[], + *mode_help[], Help_create[], Help_build[], Help_assemble[], Help_grow[], Help_incr[], Help_manage[], Help_misc[], Help_monitor[], Help_config[]; |