summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-09 07:43:59 -0400
committermidipix <writeonce@midipix.org>2018-08-09 07:43:59 -0400
commit6333087b29192cf14498ce1891d68b9335897e68 (patch)
tree793ba4bb470799cb673f77165fd874adfbc84529
parent009664542be578ce6f1f27bbed86ddee78401cf6 (diff)
downloadslibtool-6333087b29192cf14498ce1891d68b9335897e68.tar.bz2
slibtool-6333087b29192cf14498ce1891d68b9335897e68.tar.xz
coding-style meditation.
-rw-r--r--src/output/slbt_output_error.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/output/slbt_output_error.c b/src/output/slbt_output_error.c
index d1cc8e5..a85b7c5 100644
--- a/src/output/slbt_output_error.c
+++ b/src/output/slbt_output_error.c
@@ -62,9 +62,12 @@ static int slbt_output_error_record_plain(
const struct slbt_error_info * erri)
{
char errbuf[256];
+
+ int fderr = slbt_driver_fderr(dctx);
const char * errdesc = slbt_output_strerror(erri,&errbuf);
- if (slbt_dprintf(slbt_driver_fderr(dctx),
+ if (slbt_dprintf(
+ fderr,
"%s: %s %s(), line %d%s%s.\n",
dctx->program,
slbt_output_error_header(erri),
@@ -82,10 +85,12 @@ static int slbt_output_error_record_annotated(
const struct slbt_error_info * erri)
{
char errbuf[256];
+
+ int fderr = slbt_driver_fderr(dctx);
const char * errdesc = slbt_output_strerror(erri,&errbuf);
if (slbt_dprintf(
- slbt_driver_fderr(dctx),
+ fderr,
"%s%s%s:%s %s%s%s %s%s%s()%s, %s%sline %d%s%s%s%s%s.\n",
aclr_bold,aclr_magenta,