diff options
author | bapt <bapt@FreeBSD.org> | 2015-07-28 05:48:58 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-07-28 05:48:58 +0000 |
commit | 76e00b9ec32a3cae1b057d7276283134d767ec4c (patch) | |
tree | 564e2fc1edcb56af4f233b1b15515e0466e43ee0 /usr.sbin/ctladm/ctladm.c | |
parent | c78f4c18f7d5ae61d7b911fdb6d33e0948b7d81f (diff) | |
download | FreeBSD-src-76e00b9ec32a3cae1b057d7276283134d767ec4c.zip FreeBSD-src-76e00b9ec32a3cae1b057d7276283134d767ec4c.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
Sponsored by: gandi.net
Diffstat (limited to 'usr.sbin/ctladm/ctladm.c')
-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 03c751b..886a26e 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -3657,6 +3657,7 @@ retry: retval = 1; goto bailout; } + retval = 0; XML_ParserFree(parser); if (verbose != 0) { @@ -4075,6 +4076,7 @@ retry: retval = 1; goto bailout; } + retval = 0; XML_ParserFree(parser); printf("LUN Backend %18s %4s %-16s %-16s\n", "Size (Blocks)", "BS", @@ -4371,6 +4373,7 @@ retry: retval = 1; goto bailout; } + retval = 0; XML_ParserFree(parser); if (quiet == 0) |