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 22:11:25 -0400
commitae96cc9d975d7f65c3abc73db3c4f22984faa00c (patch)
tree3d3384d9629b6fa21c3bb4e140ad749de1fbba2c /src/driver
parentd5746a621cd52addd27887ca58a8d3495f29a4f5 (diff)
downloadperk-ae96cc9d975d7f65c3abc73db3c4f22984faa00c.tar.bz2
perk-ae96cc9d975d7f65c3abc73db3c4f22984faa00c.tar.xz
argv.h: output usage and errors using [argv_]dprintf rather than fprint.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/pe_driver_ctx.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c
index add9113..3beb073 100644
--- a/src/driver/pe_driver_ctx.c
+++ b/src/driver/pe_driver_ctx.c
@@ -59,7 +59,7 @@ static int pe_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 PERK_USAGE;
@@ -126,7 +126,10 @@ int pe_get_driver_ctx(
argv_optv_init(pe_default_options,optv);
- if (!(meta = argv_get(argv,optv,pe_argv_flags(flags))))
+ if (!(meta = argv_get(
+ argv,optv,
+ pe_argv_flags(flags),
+ STDERR_FILENO)))
return -1;
pretty = 0;