summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-15 11:48:44 -0400
committermidipix <writeonce@midipix.org>2018-07-15 12:18:48 -0400
commit2b5e804c38112fd9975bc24d8ad758cbe5dfe9fe (patch)
treefd19ea087e4c8778e5542a50ac20bda44b6d6ae4
parent8cdeff88d4dac06c0d6b60e4c816e40ea00f99e6 (diff)
downloadntux-2b5e804c38112fd9975bc24d8ad758cbe5dfe9fe.tar.bz2
ntux-2b5e804c38112fd9975bc24d8ad758cbe5dfe9fe.tar.xz
ntux_version(): restrict to pure fdio via use of ntux_dprintf().
-rw-r--r--src/driver/ntux_amain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/driver/ntux_amain.c b/src/driver/ntux_amain.c
index 5ecc267..b6719ff 100644
--- a/src/driver/ntux_amain.c
+++ b/src/driver/ntux_amain.c
@@ -40,7 +40,8 @@ static ssize_t ntux_version(struct ntux_driver_ctx * dctx)
verinfo = ntux_source_version();
verclr = isatty(STDOUT_FILENO) ? ntux_ver_color : ntux_ver_plain;
- return fprintf(stdout,vermsg,
+ return ntux_dprintf(
+ STDOUT_FILENO,vermsg,
verclr[0],dctx->program,verclr[1],
verclr[2],verinfo->major,verinfo->minor,
verinfo->revision,verclr[3],