summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-06-26 14:12:33 +0000
committermidipix <writeonce@midipix.org>2018-07-14 20:29:21 -0400
commit6b4bf589f338325a0b6dc8f07029982fbc23f5e9 (patch)
treeeda8a2f51894d2eb505bf8ddf3e537288039a286 /src/driver
parentdaef7dbc912e6a7c0c0403f6493a25c13e36fbf3 (diff)
downloadmdso-6b4bf589f338325a0b6dc8f07029982fbc23f5e9.tar.bz2
mdso-6b4bf589f338325a0b6dc8f07029982fbc23f5e9.tar.xz
argv.h: output usage and errors using [argv_]dprintf rather than fprint.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/mdso_driver_ctx.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index c7950d5..6362d32 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -68,7 +68,7 @@ static int mdso_driver_usage(
"Usage: %s [options] <file>...\n" "Options:\n",
program);
- argv_usage(stdout,header,optv,arg);
+ argv_usage(STDOUT_FILENO,header,optv,arg);
argv_free(meta);
return MDSO_USAGE;
@@ -177,7 +177,10 @@ int mdso_get_driver_ctx(
argv_optv_init(mdso_default_options,optv);
- if (!(meta = argv_get(argv,optv,mdso_argv_flags(flags))))
+ if (!(meta = argv_get(
+ argv,optv,
+ mdso_argv_flags(flags),
+ STDERR_FILENO)))
return -1;
/* cctx init, option defaults */
@@ -325,7 +328,7 @@ int mdso_create_driver_ctx(
argv_optv_init(mdso_default_options,optv);
- if (!(meta = argv_get(argv,optv,0)))
+ if (!(meta = argv_get(argv,optv,0,STDERR_FILENO)))
return -1;
if (cctx->dstdir && (fddst = mdso_dstdir_open(cctx,cctx->asmbase)) < 0)