diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-06-02 17:55:00 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-06-02 17:55:00 -0700 |
commit | 80369a816eea6fd86e3e11bd877673ec4d12d7d2 (patch) | |
tree | 84f0762a5d2e977a06c6681f0ca327f220c8b954 /src/cli_new.c | |
parent | 1291aa7736110abc2784d969aaccc48b53ad3657 (diff) | |
download | vyatta-cfg-80369a816eea6fd86e3e11bd877673ec4d12d7d2.tar.gz vyatta-cfg-80369a816eea6fd86e3e11bd877673ec4d12d7d2.zip |
simplify output init
Diffstat (limited to 'src/cli_new.c')
-rw-r--r-- | src/cli_new.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cli_new.c b/src/cli_new.c index 50655b6..06bd4bf 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -105,7 +105,7 @@ is_deactivated(const clind_path_ref *path,const char *symbol) ; GLOBAL FUNCTIONS ***************************************************/ -char *cli_operation_name = NULL; +const char *cli_operation_name = NULL; /* it is executed as "eval `my_set` in order to be able to modify BASH env @@ -2329,7 +2329,7 @@ int new_out_fd = -1; int new_err_fd = -1; int -initialize_output() +initialize_output(const char *op) { if ((out_fd = dup(STDOUT_FILENO)) == -1) { return -1; @@ -2358,6 +2358,7 @@ initialize_output() return -1; } + cli_operation_name = op; return 0; } |