summaryrefslogtreecommitdiff
path: root/usr.sbin/vmctl
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2021-01-27 07:21:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2021-01-27 07:21:13 +0000
commit6e9a6c5cd0117b0cecf54fc9e3fe849a80ca3844 (patch)
treec4eb5f5770c39d6a12e873593d78d5fdfd79973b /usr.sbin/vmctl
parent228f0e76e2c3eb0e03f814b48452a6e37abc8b52 (diff)
split out extern and decl for -fno-common
Diffstat (limited to 'usr.sbin/vmctl')
-rw-r--r--usr.sbin/vmctl/vmctl.c4
-rw-r--r--usr.sbin/vmctl/vmctl.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/vmctl/vmctl.c b/usr.sbin/vmctl/vmctl.c
index 1e99f13508d..d8edbc062eb 100644
--- a/usr.sbin/vmctl/vmctl.c
+++ b/usr.sbin/vmctl/vmctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmctl.c,v 1.75 2020/09/02 19:57:33 tb Exp $ */
+/* $OpenBSD: vmctl.c,v 1.76 2021/01/27 07:21:12 deraadt Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
@@ -49,6 +49,8 @@ char info_name[VMM_MAX_NAME_LEN];
enum actions info_action;
unsigned int info_flags;
+struct imsgbuf *ibuf;
+
/*
* vm_start
*
diff --git a/usr.sbin/vmctl/vmctl.h b/usr.sbin/vmctl/vmctl.h
index beb65eae6d8..4fd2b787deb 100644
--- a/usr.sbin/vmctl/vmctl.h
+++ b/usr.sbin/vmctl/vmctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmctl.h,v 1.33 2019/12/17 09:43:00 kn Exp $ */
+/* $OpenBSD: vmctl.h,v 1.34 2021/01/27 07:21:12 deraadt Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -71,7 +71,7 @@ struct ctl_command {
int has_pledge;
};
-struct imsgbuf *ibuf;
+extern struct imsgbuf *ibuf;
/* main.c */
int vmmaction(struct parse_result *);