diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-11 23:45:03 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-01-11 23:45:03 +0000 |
commit | ee992c294f42e0406178b2a463fa2cd6fa09ad0e (patch) | |
tree | e4b52fe1d8d712944fc02d0ba269cd9281a66e7f /sbin | |
parent | a18ef070d60a19198cb102b9643203c1e042b98d (diff) |
Remove some '-v' leftovers. Pointed out by jasper@.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pdisk/pdisk.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sbin/pdisk/pdisk.c b/sbin/pdisk/pdisk.c index 4283dfb5687..66576be7db8 100644 --- a/sbin/pdisk/pdisk.c +++ b/sbin/pdisk/pdisk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pdisk.c,v 1.23 2016/01/11 23:31:27 krw Exp $ */ +/* $OpenBSD: pdisk.c,v 1.24 2016/01/11 23:45:02 krw Exp $ */ // // pdisk - an editor for Apple format partition tables @@ -63,7 +63,6 @@ #define INTERACT_DEFAULT 0 #define LFLAG_DEFAULT 0 #define RFLAG_DEFAULT 0 -#define VFLAG_DEFAULT 0 // @@ -88,7 +87,6 @@ enum getopt_values { // int lflag = LFLAG_DEFAULT; /* list the device */ char *lfile; /* list */ -int vflag = VFLAG_DEFAULT; /* show version */ int hflag = HFLAG_DEFAULT; /* show help */ int dflag = DFLAG_DEFAULT; /* turn on debugging commands and printout */ int rflag = RFLAG_DEFAULT; /* open device read Only */ @@ -161,7 +159,7 @@ main(int argc, char **argv) while (name_index < argc) { edit(argv[name_index++], 0); } - } else if (!vflag) { + } else { do_help(); } return 0; @@ -316,7 +314,6 @@ get_options(int argc, char **argv) lflag = LFLAG_DEFAULT; lfile = NULL; - vflag = VFLAG_DEFAULT; hflag = HFLAG_DEFAULT; dflag = DFLAG_DEFAULT; rflag = RFLAG_DEFAULT; @@ -334,9 +331,6 @@ get_options(int argc, char **argv) case 'l': lflag = (LFLAG_DEFAULT)?0:1; break; - case 'v': - vflag = (VFLAG_DEFAULT)?0:1; - break; case 'd': dflag = (DFLAG_DEFAULT)?0:1; break; |