From 7653df2a4c58c717471795480413318d34d89b0c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 6 Dec 1995 20:33:49 +0000 Subject: (main): Supply the new SEP argument to argz_stringify. Change uses of the INDEX field in argp_state structures to use NEXT instead. Fix default prefix-printing test. --- utils/showtrans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/showtrans.c b/utils/showtrans.c index bada3f04..18d7593d 100644 --- a/utils/showtrans.c +++ b/utils/showtrans.c @@ -70,7 +70,7 @@ main (int argc, char *argv[]) { case 0: /* Make the '\0's in TRANS printable. */ - argz_stringify (trans, trans_len); + argz_stringify (trans, trans_len, ' '); if (!silent) if (print_prefix) @@ -109,7 +109,7 @@ main (int argc, char *argv[]) case ARGP_KEY_ARG: /* A FILE argument */ if (print_prefix < 0) /* By default, only print a prefix if there are multiple files. */ - print_prefix = (argc > state->index + 1); + print_prefix = state->next < state->argc; if (arg && strcmp (arg, "-") != 0) print_node_trans (file_name_lookup (arg, O_NOTRANS, 0), arg); -- cgit v1.2.3