WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix xentop error return code if passed un

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix xentop error return code if passed unrecognised options.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 28 Jan 2007 13:30:08 -0800
Delivery-date: Sun, 28 Jan 2007 13:30:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxxx
# Date 1169976827 0
# Node ID 4e7bda043cced371f098bb3bee486ed57d6388c2
# Parent  d1710eb353855a5fac71e5507deb3d3a131a7de2
Fix xentop error return code if passed unrecognised options.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/xenstat/xentop/xentop.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r d1710eb35385 -r 4e7bda043cce tools/xenstat/xentop/xentop.c
--- a/tools/xenstat/xentop/xentop.c     Sat Jan 27 13:32:27 2007 +0000
+++ b/tools/xenstat/xentop/xentop.c     Sun Jan 28 09:33:47 2007 +0000
@@ -998,9 +998,11 @@ int main(int argc, char **argv)
 
        while ((opt = getopt_long(argc, argv, sopts, lopts, &optind)) != -1) {
                switch (opt) {
+               default:
+                       usage(argv[0]);
+                       exit(1);
+               case '?':
                case 'h':
-               case '?':
-               default:
                        usage(argv[0]);
                        exit(0);
                case 'V':

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix xentop error return code if passed unrecognised options., Xen patchbot-unstable <=