summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2017-11-01 13:43:04 +0100
committerKim Hagen <kim.sidney@gmail.com>2017-11-01 13:43:04 +0100
commit64260c2c6c01d64f3860bcfbc9ab1895de237df1 (patch)
tree082315057c8dc4fc8414f51eb04133291685b20e
parentd742ee6714e63a441262091c61338409efc08a45 (diff)
downloadvyatta-cfg-64260c2c6c01d64f3860bcfbc9ab1895de237df1.tar.gz
vyatta-cfg-64260c2c6c01d64f3860bcfbc9ab1895de237df1.zip
ignore return statements warnings/errors, maybe we should do something with the return codes?
-rw-r--r--debian/compat2
-rw-r--r--src/commit/commit-algorithm.cpp4
-rw-r--r--src/common/unionfs.c24
3 files changed, 15 insertions, 15 deletions
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+9
diff --git a/src/commit/commit-algorithm.cpp b/src/commit/commit-algorithm.cpp
index ca0c10f..e5bd885 100644
--- a/src/commit/commit-algorithm.cpp
+++ b/src/commit/commit-algorithm.cpp
@@ -787,7 +787,7 @@ _execute_hooks(CommitHook hook)
cmd += "'";
// not checking return status
restore_output();
- system(cmd.c_str());
+ if(system(cmd.c_str()));
redirect_output();
}
@@ -1273,7 +1273,7 @@ commit::doCommit(Cstore& cs, CfgNode& cfg1, CfgNode& cfg2)
if (s > 0) {
// notify other users in config mode
- system("/opt/vyatta/sbin/vyatta-cfg-notify");
+ if(system("/opt/vyatta/sbin/vyatta-cfg-notify"));
}
if (!cs.commitConfig(proot)) {
diff --git a/src/common/unionfs.c b/src/common/unionfs.c
index dee7cf1..3a47276 100644
--- a/src/common/unionfs.c
+++ b/src/common/unionfs.c
@@ -810,7 +810,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy,
fflush(NULL);
}
if (test_mode == FALSE) {
- system(command);
+ if(system(command));
}
//mkdir temp merge
@@ -821,7 +821,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy,
fflush(NULL);
}
if (test_mode == FALSE) {
- system(command);
+ if(system(command));
}
@@ -834,7 +834,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy,
fflush(NULL);
}
if (test_mode == FALSE) {
- system(command);
+ if(system(command));
}
// unmount the session dir
@@ -850,7 +850,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy,
fflush(NULL);
}
if (test_mode == FALSE) {
- system(command);
+ if(system(command));
}
sprintf(command, format1point1, tbuf_root, abuf_root);
if (g_debug) {
@@ -859,7 +859,7 @@ common_commit_copy_to_live_config(GNode *node, boolean suppress_piecewise_copy,
fflush(NULL);
}
if (test_mode == FALSE) {
- system(command);
+ if(system(command));
}
}
else {
@@ -948,7 +948,7 @@ common_commit_clean_temp_config(GNode *root_node, boolean test_mode)
fflush(NULL);
}
if (test_mode == FALSE) {
- system(command);
+ if(system(command));
}
if (test_mode == FALSE) {
@@ -956,7 +956,7 @@ common_commit_clean_temp_config(GNode *root_node, boolean test_mode)
}
/* notify other users in config mode */
- system("/opt/vyatta/sbin/vyatta-cfg-notify");
+ if(system("/opt/vyatta/sbin/vyatta-cfg-notify"));
free(command);
}
@@ -1339,7 +1339,7 @@ delete_func(GNode *node, gpointer data)
fflush(NULL);
}
if (sd->_test_mode == FALSE) {
- system(command);
+ if(system(command));
}
}
@@ -1359,7 +1359,7 @@ delete_func(GNode *node, gpointer data)
fflush(NULL);
}
if (sd->_test_mode == FALSE) {
- system(command);
+ if(system(command));
}
//if delete then remove entry in active configuration!
sprintf(command,format_force_delete,sd->_dst,path,sd->_dst,path);
@@ -1369,7 +1369,7 @@ delete_func(GNode *node, gpointer data)
fflush(NULL);
}
if (sd->_test_mode == FALSE) {
- system(command);
+ if(system(command));
}
}
free(command);
@@ -1416,7 +1416,7 @@ delete_wh_func(GNode *node, gpointer data)
fflush(NULL);
}
if (sd->_test_mode == FALSE) {
- system(command);
+ if(system(command));
}
}
@@ -1435,7 +1435,7 @@ delete_wh_func(GNode *node, gpointer data)
fflush(NULL);
}
if (sd->_test_mode == FALSE) {
- system(command);
+ if(system(command));
}
}
}