summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-12-06 20:33:49 +0000
committerMiles Bader <miles@gnu.org>1995-12-06 20:33:49 +0000
commit7653df2a4c58c717471795480413318d34d89b0c (patch)
tree4a12953f0ad42227c332765aed1d1e97de597ae7 /utils
parentd9d186142b4329ac40dc271107f82bb823b378c5 (diff)
(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.
Diffstat (limited to 'utils')
-rw-r--r--utils/showtrans.c4
1 files 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);