diff options
author | bapt <bapt@FreeBSD.org> | 2015-07-17 19:10:43 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-07-17 19:10:43 +0000 |
commit | b6b17c200ad933a8f599b463810193a91d039d9c (patch) | |
tree | 85d208573ba43b044fc6c0a4aa7d82e5cf90a9c1 /usr.sbin/ctladm | |
parent | b4b49529310fc60858533019b7c28d48cd3869e6 (diff) | |
download | FreeBSD-src-b6b17c200ad933a8f599b463810193a91d039d9c.zip FreeBSD-src-b6b17c200ad933a8f599b463810193a91d039d9c.tar.gz |
make ctdladm(8) return 0 is everything was ok.
retval is used to test the return of XML_Parse function which is ok if 1 is
returned and retval it directly returned to the main function and used as an
exit value.
if all the parsing part is done reset retval to 0 so that the command return 0
if everything ok
Differential Revision: https://reviews.freebsd.org/D3102
Reviewed by: trasz
MFC after: 3 days
Sponsored by: gandi.net
Diffstat (limited to 'usr.sbin/ctladm')
-rw-r--r-- | usr.sbin/ctladm/ctladm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/ctladm/ctladm.c b/usr.sbin/ctladm/ctladm.c index aefba04..6baf0902 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -3661,6 +3661,7 @@ retry: retval = 1; goto bailout; } + retval = 0; XML_ParserFree(parser); if (verbose != 0) { @@ -4080,6 +4081,7 @@ retry: retval = 1; goto bailout; } + retval = 0; XML_ParserFree(parser); printf("LUN Backend %18s %4s %-16s %-16s\n", "Size (Blocks)", "BS", @@ -4376,6 +4378,7 @@ retry: retval = 1; goto bailout; } + retval = 0; XML_ParserFree(parser); if (quiet == 0) |