[PATCH] virt-cat: remove the useless "h" option
"h" option is not enabled in virt-cat, remove it. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- cat/virt-cat.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cat/virt-cat.c b/cat/virt-cat.c index 2a6b64f..5ea461e 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -158,9 +158,6 @@ main (int argc, char *argv[]) OPTION_d; break; - case 'h': - usage (EXIT_SUCCESS); - case 'v': OPTION_v; break; -- 1.7.12.1.401.gb5d156c
On Wed, Sep 26, 2012 at 04:36:51PM +0800, Wanlong Gao wrote:
"h" option is not enabled in virt-cat, remove it.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- cat/virt-cat.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/cat/virt-cat.c b/cat/virt-cat.c index 2a6b64f..5ea461e 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -158,9 +158,6 @@ main (int argc, char *argv[]) OPTION_d; break;
- case 'h': - usage (EXIT_SUCCESS); - case 'v': OPTION_v; break; -- 1.7.12.1.401.gb5d156c
virt-edit, virt-inspector and virt-rescue also have useless 'h' options. Obviously a copy/paste error somewhere along the way ... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
"h" option is not enabled in virt-cat, remove it. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- cat/virt-cat.c | 3 --- edit/virt-edit.c | 3 --- inspector/virt-inspector.c | 3 --- rescue/virt-rescue.c | 3 --- 4 files changed, 12 deletions(-) diff --git a/cat/virt-cat.c b/cat/virt-cat.c index 2a6b64f..5ea461e 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -158,9 +158,6 @@ main (int argc, char *argv[]) OPTION_d; break; - case 'h': - usage (EXIT_SUCCESS); - case 'v': OPTION_v; break; diff --git a/edit/virt-edit.c b/edit/virt-edit.c index 3627ab8..73d6f07 100644 --- a/edit/virt-edit.c +++ b/edit/virt-edit.c @@ -198,9 +198,6 @@ main (int argc, char *argv[]) perl_expr = optarg; break; - case 'h': - usage (EXIT_SUCCESS); - case 'v': OPTION_v; break; diff --git a/inspector/virt-inspector.c b/inspector/virt-inspector.c index 65e52a0..8b06fa7 100644 --- a/inspector/virt-inspector.c +++ b/inspector/virt-inspector.c @@ -177,9 +177,6 @@ main (int argc, char *argv[]) OPTION_d; break; - case 'h': - usage (EXIT_SUCCESS); - case 'v': OPTION_v; break; diff --git a/rescue/virt-rescue.c b/rescue/virt-rescue.c index f9142e8..c0e5f56 100644 --- a/rescue/virt-rescue.c +++ b/rescue/virt-rescue.c @@ -217,9 +217,6 @@ main (int argc, char *argv[]) OPTION_d; break; - case 'h': - usage (EXIT_SUCCESS); - case 'm': if (sscanf (optarg, "%u", &memsize) != 1) { fprintf (stderr, _("%s: could not parse memory size '%s'\n"), -- 1.7.12.1.401.gb5d156c
Thanks - applied and pushed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
participants (2)
-
Richard W.M. Jones -
Wanlong Gao