summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/sfrt_driver_ctx.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/driver/sfrt_driver_ctx.c b/src/driver/sfrt_driver_ctx.c
index 58cccd7..3920049 100644
--- a/src/driver/sfrt_driver_ctx.c
+++ b/src/driver/sfrt_driver_ctx.c
@@ -52,7 +52,7 @@ static int sfrt_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 SFRT_USAGE;
@@ -117,7 +117,10 @@ int sfrt_get_driver_ctx(
argv_optv_init(sfrt_default_options,optv);
- if (!(meta = argv_get(argv,optv,sfrt_argv_flags(flags))))
+ if (!(meta = argv_get(
+ argv,optv,
+ sfrt_argv_flags(flags),
+ STDERR_FILENO)))
return -1;
nunits = 0;
@@ -176,7 +179,7 @@ int sfrt_create_driver_ctx(
argv_optv_init(sfrt_default_options,optv);
- if (!(meta = argv_get(argv,optv,0)))
+ if (!(meta = argv_get(argv,optv,0,STDERR_FILENO)))
return -1;
if (!(ctx = sfrt_driver_ctx_alloc(meta,cctx,0)))