diff options
author | midipix <writeonce@midipix.org> | 2024-05-30 00:52:17 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-05-30 00:57:50 +0000 |
commit | 5cec4427826c31b5f3e8b46acdff54150fbd190e (patch) | |
tree | 0792964fdfd5b84f737708246f245dc18a979daf /src/driver | |
parent | 5ceeb10bf73ae3329be835bad0ed81c2b5faf90b (diff) | |
download | tpax-5cec4427826c31b5f3e8b46acdff54150fbd190e.tar.bz2 tpax-5cec4427826c31b5f3e8b46acdff54150fbd190e.tar.xz |
tpax_driver_usage_block_size(): only print out the actual error.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/tpax_driver_ctx.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/driver/tpax_driver_ctx.c b/src/driver/tpax_driver_ctx.c index 6e9f615..37ec718 100644 --- a/src/driver/tpax_driver_ctx.c +++ b/src/driver/tpax_driver_ctx.c @@ -208,18 +208,15 @@ static int tpax_driver_usage_block_size( int fdout, const char * program, const char * arg, - const struct argv_option ** optv, struct argv_meta * meta) { - tpax_driver_usage( - fdout,program, - arg,optv,meta); - tpax_dprintf( fdout, - "%s: usage error: `%s' is not a valid positive decimal integer.\n", + "%s: usage error: the requested block size `%s' is not a positive decimal integer.\n", program,arg); + argv_free(meta); + return TPAX_USAGE; } @@ -484,7 +481,7 @@ int tpax_lib_get_driver_ctx( return tpax_driver_usage_block_size( fdctx->fderr, program,entry->arg, - optv,meta); + meta); cctx.blksize = atoi(entry->arg); |