summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-05-14 00:33:00 +0800
committerAn-Cheng Huang <ancheng@vyatta.com>2011-05-14 00:33:00 +0800
commit36fed020ae85342fe87750d37093584e584481a8 (patch)
treef4b5a6e3faa99935b01b1d6944e271cee1fe7b87 /src
parent0451a762d2ced82b15e56c9e36a7596a94b7c75d (diff)
downloadvyatta-cfg-36fed020ae85342fe87750d37093584e584481a8.tar.gz
vyatta-cfg-36fed020ae85342fe87750d37093584e584481a8.zip
minor changes
* remove warning. * make output more responsive.
Diffstat (limited to 'src')
-rw-r--r--src/cli_new.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cli_new.c b/src/cli_new.c
index be1264a..2cb0c03 100644
--- a/src/cli_new.c
+++ b/src/cli_new.c
@@ -961,7 +961,7 @@ static int change_var_value(const char* var_reference,const char* value, int act
return ret;
}
-int system_out(const char *command, const char *prepend_msg, boolean format);
+int system_out(char *command, const char *prepend_msg, boolean eloc);
/****************************************************
check_syn:
@@ -2104,7 +2104,7 @@ restore_output()
}
int
-system_out(const char *cmd, const char *prepend_msg, boolean eloc)
+system_out(char *cmd, const char *prepend_msg, boolean eloc)
{
int pfd[2];
int ret;
@@ -2274,6 +2274,7 @@ system_out(const char *cmd, const char *prepend_msg, boolean eloc)
if (fwrite(out, count, 1, out_stream) != 1) {
return -1;
}
+ fflush(out_stream);
} else if (sret == 0) {
/* timeout */
if (waitpid(cpid, &status, WNOHANG) == cpid) {