summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-24 12:13:25 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-24 12:13:25 -0800
commit233361034cd2ad73c1eff71336058a4388af27d0 (patch)
treea4f3f15ad810860f8c80aa2283f1bc7cad5e0a67
parent25e1a26f3ab1a142a256d67d88abdc7f7341a0d3 (diff)
parent60192694d82b0f6b34d3a8be846e0f81893e8a9b (diff)
downloadvyatta-cfg-233361034cd2ad73c1eff71336058a4388af27d0.tar.gz
vyatta-cfg-233361034cd2ad73c1eff71336058a4388af27d0.zip
Merge branch 'mendocino' of suva.vyatta.com:/git/vyatta-cfg into mendocino
-rw-r--r--src/cli_bin.cpp2
-rw-r--r--src/cli_new.c2
-rw-r--r--src/cli_shell_api.cpp30
3 files changed, 17 insertions, 17 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) {
diff --git a/src/cli_new.c b/src/cli_new.c
index 41afb5f..1ac99a1 100644
--- a/src/cli_new.c
+++ b/src/cli_new.c
@@ -129,7 +129,7 @@ void bye(const char *msg, ...)
printf(is_echo()? "\";":"\n");
va_end(ap);
- exit(-1);
+ exit(1);
}
/* msg:
diff --git a/src/cli_shell_api.cpp b/src/cli_shell_api.cpp
index 02340bf..af0a320 100644
--- a/src/cli_shell_api.cpp
+++ b/src/cli_shell_api.cpp
@@ -82,7 +82,7 @@ getEditEnv(const vector<string>& args)
UnionfsCstore cstore(true);
string env;
if (!cstore.getEditEnv(args, env)) {
- exit(-1);
+ exit(1);
}
printf("%s", env.c_str());
}
@@ -94,7 +94,7 @@ getEditUpEnv(const vector<string>& args)
UnionfsCstore cstore(true);
string env;
if (!cstore.getEditUpEnv(env)) {
- exit(-1);
+ exit(1);
}
printf("%s", env.c_str());
}
@@ -106,7 +106,7 @@ getEditResetEnv(const vector<string>& args)
UnionfsCstore cstore(true);
string env;
if (!cstore.getEditResetEnv(env)) {
- exit(-1);
+ exit(1);
}
printf("%s", env.c_str());
}
@@ -125,7 +125,7 @@ getCompletionEnv(const vector<string>& args)
UnionfsCstore cstore(true);
string env;
if (!cstore.getCompletionEnv(args, env)) {
- exit(-1);
+ exit(1);
}
printf("%s", env.c_str());
}
@@ -145,7 +145,7 @@ markSessionUnsaved(const vector<string>& args)
{
UnionfsCstore cstore(true);
if (!cstore.markSessionUnsaved()) {
- exit(-1);
+ exit(1);
}
}
@@ -154,7 +154,7 @@ unmarkSessionUnsaved(const vector<string>& args)
{
UnionfsCstore cstore(true);
if (!cstore.unmarkSessionUnsaved()) {
- exit(-1);
+ exit(1);
}
}
@@ -163,7 +163,7 @@ sessionUnsaved(const vector<string>& args)
{
UnionfsCstore cstore(true);
if (!cstore.sessionUnsaved()) {
- exit(-1);
+ exit(1);
}
}
@@ -172,7 +172,7 @@ sessionChanged(const vector<string>& args)
{
UnionfsCstore cstore(true);
if (!cstore.sessionChanged()) {
- exit(-1);
+ exit(1);
}
}
@@ -181,7 +181,7 @@ teardownSession(const vector<string>& args)
{
UnionfsCstore cstore(true);
if (!cstore.teardownSession()) {
- exit(-1);
+ exit(1);
}
}
@@ -190,7 +190,7 @@ setupSession(const vector<string>& args)
{
UnionfsCstore cstore(true);
if (!cstore.setupSession()) {
- exit(-1);
+ exit(1);
}
}
@@ -199,7 +199,7 @@ inSession(const vector<string>& args)
{
UnionfsCstore cstore(true);
if (!cstore.inSession()) {
- exit(-1);
+ exit(1);
}
}
@@ -495,7 +495,7 @@ main(int argc, char **argv)
int i = 0;
if (nargs < 0) {
fprintf(stderr, "Must specify operation\n");
- exit(-1);
+ exit(1);
}
while (ops[i].op_name) {
if (strcmp(oname, ops[i].op_name) == 0) {
@@ -506,15 +506,15 @@ main(int argc, char **argv)
}
if (op_idx == -1) {
fprintf(stderr, "Invalid operation\n");
- exit(-1);
+ exit(1);
}
if (OP_exact_args >= 0 && nargs != OP_exact_args) {
fprintf(stderr, "%s\n", OP_exact_error);
- exit(-1);
+ exit(1);
}
if (OP_min_args >= 0 && nargs < OP_min_args) {
fprintf(stderr, "%s\n", OP_min_error);
- exit(-1);
+ exit(1);
}
vector<string> args;