summaryrefslogtreecommitdiff
path: root/src/cli_bin.cpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-11-24 12:00:55 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2010-11-24 12:00:55 -0800
commit60192694d82b0f6b34d3a8be846e0f81893e8a9b (patch)
tree96fe55b42a79e0506c159e309d16fd6318d915cc /src/cli_bin.cpp
parent6c744b0ba23a616f00d63e12daf10a4fcd187cfa (diff)
downloadvyatta-cfg-60192694d82b0f6b34d3a8be846e0f81893e8a9b.tar.gz
vyatta-cfg-60192694d82b0f6b34d3a8be846e0f81893e8a9b.zip
use exit code 1 to ease init script usage
Diffstat (limited to 'src/cli_bin.cpp')
-rw-r--r--src/cli_bin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli_bin.cpp b/src/cli_bin.cpp
index 5823c02..9528277 100644
--- a/src/cli_bin.cpp
+++ b/src/cli_bin.cpp
@@ -206,7 +206,7 @@ main(int argc, char **argv)
}
if (op_idx == -1) {
printf("Invalid operation\n");
- exit(-1);
+ exit(1);
}
if (initialize_output(OP_Str) == -1) {