diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-23 14:48:42 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-23 14:48:42 -0700 |
commit | 46043b24caf3ccbaeef3fdfaeb7edcc6c99e6a58 (patch) | |
tree | 973381f2ea2fbc4d43287e1f9e5a1d445dfe527d /src/cli_bin.cpp | |
parent | f15df25b9693b8802912ddd24f7f8aeaa2893380 (diff) | |
download | vyatta-cfg-46043b24caf3ccbaeef3fdfaeb7edcc6c99e6a58.tar.gz vyatta-cfg-46043b24caf3ccbaeef3fdfaeb7edcc6c99e6a58.zip |
move "changed" status handling into library
* remove public status modifier as high-level operations no longer need it.
* add more information to clarify changed status handling in library.
* mark changed status at appropriate places in library.
Diffstat (limited to 'src/cli_bin.cpp')
-rw-r--r-- | src/cli_bin.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cli_bin.cpp b/src/cli_bin.cpp index 25a86ce..5823c02 100644 --- a/src/cli_bin.cpp +++ b/src/cli_bin.cpp @@ -165,8 +165,6 @@ doDiscard(Cstore& cstore, const vector<string>& args) if (!cstore.discardChanges()) { bye("discard failed\n"); } - // special case for discard: don't return (don't want to mark changed) - exit(0); } static void @@ -228,7 +226,6 @@ main(int argc, char **argv) // call the op function OpFunc[op_idx](cstore, path_comps); - cstore.markCfgPathChanged(path_comps); exit(0); } |