diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/ptyc_driver_ctx.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index 6efc085..d83e23f 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -136,7 +136,7 @@ static int ptyc_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 PTYC_USAGE; @@ -252,7 +252,10 @@ int ptyc_get_driver_ctx( if (ptyc_split_argv(argv,&sargv)) return -1; - if (!(meta = argv_get(sargv.targv,optv,ptyc_argv_flags(flags)))) + if (!(meta = argv_get( + sargv.targv,optv, + ptyc_argv_flags(flags), + STDERR_FILENO))) return -1; nunits = 0; @@ -363,7 +366,7 @@ int ptyc_create_driver_ctx( argv_optv_init(ptyc_default_options,optv); - if (!(meta = argv_get(argv,optv,0))) + if (!(meta = argv_get(argv,optv,0,STDERR_FILENO))) return -1; if (!(ctx = ptyc_driver_ctx_alloc(meta,cctx,0))) |