summaryrefslogtreecommitdiff
path: root/utils/storeinfo.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-12-04 22:00:13 +0000
committerMiles Bader <miles@gnu.org>1995-12-04 22:00:13 +0000
commit7f040686cfa4a84f16ca1d0404bdc2f7371b50af (patch)
tree27274095ef58aab2f79f053bea6336b27276dec6 /utils/storeinfo.c
parent3b867d90382ca8a3002b3cc952866d16c2223ca9 (diff)
(main): Correctly whether to print prefix by default.
(options): Fix help strings.
Diffstat (limited to 'utils/storeinfo.c')
-rw-r--r--utils/storeinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/storeinfo.c b/utils/storeinfo.c
index 00d568a8..90fc8296 100644
--- a/utils/storeinfo.c
+++ b/utils/storeinfo.c
@@ -39,8 +39,8 @@ static struct argp_option options[] =
{"size", 's', 0, 0, "print the size, in bytes, of FILE"},
{"runs", 'r', 0, 0, "print the runs of blocks in FILE"},
{"dereference", 'L', 0, 0, "if FILE is a symbolic link, follow it"},
- {"prefix", 'p', 0, 0, "never print `FILE: ' before info"},
- {"no-prefix", 'P', 0, 0, "always print `FILE: ' before info"},
+ {"prefix", 'p', 0, 0, "always print `FILE: ' before info"},
+ {"no-prefix", 'P', 0, 0, "never print `FILE: ' before info"},
{0, 0}
};
static char *args_doc = "FILE...";
@@ -178,7 +178,7 @@ main(int argc, char *argv[])
if (print_prefix < 0)
/* By default, only print a filename prefix if there are multiple
files. */
- print_prefix = (state->argc != state->index + 1);
+ print_prefix = state->argc != state->index;
if (what == 0)
what = W_ALL;
if (file == MACH_PORT_NULL)