]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
make ctdladm(8) return 0 is everything was ok.
authorbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Jul 2015 05:48:58 +0000 (05:48 +0000)
committerbapt <bapt@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 28 Jul 2015 05:48:58 +0000 (05:48 +0000)
commitbd37f2c1305c5db842099bb4c9c10b2c8c84e379
tree564e2fc1edcb56af4f233b1b15515e0466e43ee0
parent69af8684205606cc30de6c522c120d3dc28c4883
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@285929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/ctladm/ctladm.c