diff options
author | midipix <writeonce@midipix.org> | 2018-07-14 21:20:40 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-07-15 11:01:59 -0400 |
commit | e754e37a210a1dc1d649403cb6084e8dcd87b2dd (patch) | |
tree | 022a15370567824223b3bd4ab3f55e92ee480c3f /src/driver | |
parent | 36f709d911fada11825b77e72ceb6277f2c9a521 (diff) | |
download | ptycon-e754e37a210a1dc1d649403cb6084e8dcd87b2dd.tar.bz2 ptycon-e754e37a210a1dc1d649403cb6084e8dcd87b2dd.tar.xz |
argv.h: output usage and errors using [argv_]dprintf rather than fprint.
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))) |