summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-14 15:57:34 -0400
committermidipix <writeonce@midipix.org>2016-05-14 15:57:34 -0400
commit26127d8f542499bf128f11a3f272cd677a7d30d7 (patch)
tree9ab3e29bc5f8ef4d9c1aca5a263e265764b39ccb /src
parent839fb448c6cdd718d35c4b0860539f114900a106 (diff)
downloadslibtool-26127d8f542499bf128f11a3f272cd677a7d30d7.tar.bz2
slibtool-26127d8f542499bf128f11a3f272cd677a7d30d7.tar.xz
output: flush stdout upon return from the output functions.
Diffstat (limited to 'src')
-rw-r--r--src/output/slbt_output_config.c2
-rw-r--r--src/output/slbt_output_exec.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/output/slbt_output_config.c b/src/output/slbt_output_config.c
index 321ec20..d10a80e 100644
--- a/src/output/slbt_output_config.c
+++ b/src/output/slbt_output_config.c
@@ -92,5 +92,5 @@ int slbt_output_config(const struct slbt_driver_ctx * dctx)
if (slbt_output_config_line("dlltool",cctx->host.dlltool,cctx->cfgmeta.dlltool,midwidth))
return -1;
- return 0;
+ return fflush(stdout);
}
diff --git a/src/output/slbt_output_exec.c b/src/output/slbt_output_exec.c
index 4001af6..f9d0eda 100644
--- a/src/output/slbt_output_exec.c
+++ b/src/output/slbt_output_exec.c
@@ -54,7 +54,7 @@ static int slbt_output_exec_annotated(
if (fputc('\n',stdout) < 0)
return -1;
- return 0;
+ return fflush(stdout);
}
static int slbt_output_exec_plain(
@@ -74,7 +74,7 @@ static int slbt_output_exec_plain(
if (fputc('\n',stdout) < 0)
return -1;
- return 0;
+ return fflush(stdout);
}
int slbt_output_exec(