diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-12-05 04:40:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-12-05 04:40:06 +0000 |
commit | d87ea9c906bea3690ea318e094f182438e690efd (patch) | |
tree | 33fa07ebbe5733d7c083e8db7cc505530e6981c8 /usr.sbin/vmctl | |
parent | 5ca884c552acd424ac7ea4caf37d603c63578073 (diff) |
vmctl has no need to change the socket that talks to vmd.
discussed with reyk
Diffstat (limited to 'usr.sbin/vmctl')
-rw-r--r-- | usr.sbin/vmctl/main.c | 9 | ||||
-rw-r--r-- | usr.sbin/vmctl/vmctl.8 | 5 |
2 files changed, 5 insertions, 9 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c index 10e628c508b..f02586caf86 100644 --- a/usr.sbin/vmctl/main.c +++ b/usr.sbin/vmctl/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.3 2015/12/04 15:40:17 reyk Exp $ */ +/* $OpenBSD: main.c,v 1.4 2015/12/05 04:40:05 deraadt Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -70,7 +70,7 @@ usage(void) extern char *__progname; int i; - fprintf(stderr, "usage:\t%s [-s socket] command [arg ...]\n", + fprintf(stderr, "usage:\t%s command [arg ...]\n", __progname); for (i = 0; ctl_commands[i].name != NULL; i++) { fprintf(stderr, "\t%s %s %s\n", __progname, @@ -94,11 +94,8 @@ main(int argc, char *argv[]) { int ch; - while ((ch = getopt(argc, argv, "s:")) != -1) { + while ((ch = getopt(argc, argv, "")) != -1) { switch (ch) { - case 's': - socket_name = optarg; - break; default: usage(); /* NOTREACHED */ diff --git a/usr.sbin/vmctl/vmctl.8 b/usr.sbin/vmctl/vmctl.8 index 327f4d17d57..0002331c454 100644 --- a/usr.sbin/vmctl/vmctl.8 +++ b/usr.sbin/vmctl/vmctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vmctl.8,v 1.5 2015/12/04 19:17:55 jmc Exp $ +.\" $OpenBSD: vmctl.8,v 1.6 2015/12/05 04:40:05 deraadt Exp $ .\" .\" Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: December 4 2015 $ +.Dd $Mdocdate: December 5 2015 $ .Dt VMCTL 8 .Os .Sh NAME @@ -22,7 +22,6 @@ .Nd control the virtual machine daemon .Sh SYNOPSIS .Nm -.Op Fl s Ar socket .Ar command .Op Ar arg ... .Sh DESCRIPTION |