Added missing return on error

When mc_pos_control_main.cpp was ported to posix one error condition
retuned 0 instead of 1.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-05-14 08:32:51 -07:00
parent 2bdfd8ca1b
commit abe61a3d7e
1 changed files with 1 additions and 0 deletions

View File

@ -1473,6 +1473,7 @@ int mc_pos_control_main(int argc, char *argv[])
if (!strcmp(argv[1], "stop")) {
if (pos_control::g_control == nullptr) {
warnx("not running");
return 1;
}
delete pos_control::g_control;