summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authornatano <natano@openbsd.org>2016-10-16 09:36:46 +0000
committernatano <natano@openbsd.org>2016-10-16 09:36:46 +0000
commitec4821f047330253cf9babc78add79ec65721a16 (patch)
tree68e5b778b2843755716018b600f023b3933015ca /usr.sbin/config
parentAdd printf format attributes to the custom error functions. (diff)
downloadwireguard-openbsd-ec4821f047330253cf9babc78add79ec65721a16.tar.xz
wireguard-openbsd-ec4821f047330253cf9babc78add79ec65721a16.zip
Remove the -g option. It is obsolete/undocumented since the initial
import from NetBSD in '95 and does nothing except print an error. ok tb
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/main.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index d01f62e91ac..0de25dd8083 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.54 2016/10/16 09:19:15 natano Exp $ */
+/* $OpenBSD: main.c,v 1.55 2016/10/16 09:36:46 natano Exp $ */
/* $NetBSD: main.c,v 1.22 1997/02/02 21:12:33 thorpej Exp $ */
/*
@@ -106,7 +106,7 @@ main(int argc, char *argv[])
err(1, "pledge");
pflag = eflag = uflag = fflag = 0;
- while ((ch = getopt(argc, argv, "egpfb:s:o:u")) != -1) {
+ while ((ch = getopt(argc, argv, "epfb:s:o:u")) != -1) {
switch (ch) {
case 'o':
@@ -125,18 +125,6 @@ main(int argc, char *argv[])
verbose = 1;
break;
- case 'g':
- /*
- * In addition to DEBUG, you probably wanted to
- * set "options KGDB" and maybe others. We could
- * do that for you, but you really should just
- * put them in the config file.
- */
- (void)fputs(
- "-g is obsolete (use makeoptions DEBUG=\"-g\")\n",
- stderr);
- usage();
-
case 'p':
/*
* Essentially the same as makeoptions PROF="-pg",