Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/pdisk default fflag (read HFS volume name ) option is n...
details: https://anonhg.NetBSD.org/src/rev/1137dee73122
branches: trunk
changeset: 536146:1137dee73122
user: dbj <dbj%NetBSD.org@localhost>
date: Mon Sep 09 10:46:59 2002 +0000
description:
default fflag (read HFS volume name ) option is now off
remove the non-functional -p/--pname argument, replace it with -f/--fname
add -a (use abbreviations) and -L (use logical offsets) to getopt parse list
thanks to wiz for noticing inconsistencies
diffstat:
dist/pdisk/dump.h | 2 +-
dist/pdisk/pdisk.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 61858e7d35f6 -r 1137dee73122 dist/pdisk/dump.h
--- a/dist/pdisk/dump.h Mon Sep 09 10:38:55 2002 +0000
+++ b/dist/pdisk/dump.h Mon Sep 09 10:46:59 2002 +0000
@@ -36,7 +36,7 @@
//
#define AFLAG_DEFAULT 0
#define PFLAG_DEFAULT 1
-#define FFLAG_DEFAULT 1
+#define FFLAG_DEFAULT 0
//
diff -r 61858e7d35f6 -r 1137dee73122 dist/pdisk/pdisk.c
--- a/dist/pdisk/pdisk.c Mon Sep 09 10:38:55 2002 +0000
+++ b/dist/pdisk/pdisk.c Mon Sep 09 10:46:59 2002 +0000
@@ -388,7 +388,7 @@
{"debug", no_argument, 0, 'd'},
{"readonly", no_argument, 0, 'r'},
{"abbr", no_argument, 0, 'a'},
- {"pname", no_argument, 0, 'p'},
+ {"fname", no_argument, 0, 'f'},
{"logical", no_argument, 0, kLogicalOption},
{"interactive", no_argument, 0, 'i'},
{"compute_size", no_argument, 0, 'c'},
@@ -418,11 +418,11 @@
#if defined(__linux__) || defined(__NetBSD__)
optind = 0; // reset option scanner logic
- while ((c = getopt_long(argc, argv, "hlvdricp", long_options,
+ while ((c = getopt_long(argc, argv, "hlvdraLicf", long_options,
&option_index)) >= 0)
#else
opterr = 0; /* tell getopt to be quiet */
- while ((c = getopt(argc, argv, "hlvdraLicp")) != EOF)
+ while ((c = getopt(argc, argv, "hlvdraLicf")) != EOF)
#endif
{
#if !(defined(__linux__) || defined(__NetBSD__))
Home |
Main Index |
Thread Index |
Old Index