tools/tests/xen-access: minor bug fixes

Fix a couple of minor bugs in xen-access test program:
 * Fix -m option handling.
 * Fix a segfault that was occurring during program exit.

Signed-off-by: Aravindh Puthiyaparambil <aravindh@virtuata.com>
xen-unstable changeset:   23307:1649275965f0
xen-unstable date:        Mon May 09 09:56:39 2011 +0100
This commit is contained in:
Aravindh Puthiyaparambil committed 2011-05-09 12:18:50 +01:00
1 parent 23f69b133f
commit 0ad69b1cd0
1 file changed
+2 -5
+2 -5
View File
@@ -482,9 +482,6 @@ int main(int argc, char *argv[])
if ( argc == 3 && argv[0][0] == '-' )
{
argv++;
argc--;
if ( !strcmp(argv[0], "-m") )
required = 1;
else
@@ -492,6 +489,8 @@ int main(int argc, char *argv[])
usage(progname);
return -1;
}
argv++;
argc--;
}
if ( argc != 2 )
@@ -651,8 +650,6 @@ int main(int argc, char *argv[])
if ( rc == 0 )
rc = rc1;
xc_interface_close(xch);
DPRINTF("xenaccess exit code %d\n", rc);
return rc;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.