summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-12-06 20:34:15 +0000
committerMiles Bader <miles@gnu.org>1995-12-06 20:34:15 +0000
commitff638986da5a5e6890a346da7a63901b84401b51 (patch)
tree3cbce0abe0b50c42e2115694effb26d5adeb8da8 /utils
parent7653df2a4c58c717471795480413318d34d89b0c (diff)
(main):
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/storeinfo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/storeinfo.c b/utils/storeinfo.c
index 90fc8296..a7f9b3a4 100644
--- a/utils/storeinfo.c
+++ b/utils/storeinfo.c
@@ -176,9 +176,8 @@ main(int argc, char *argv[])
void info (mach_port_t file, char *source, error_t err)
{
if (print_prefix < 0)
- /* By default, only print a filename prefix if there are multiple
- files. */
- print_prefix = state->argc != state->index;
+ /* By default, only print filename prefixes for multiple files. */
+ print_prefix = state->next < state->argc;
if (what == 0)
what = W_ALL;
if (file == MACH_PORT_NULL)