split out extern and decl for -fno-common
authorderaadt <deraadt@openbsd.org>
Wed, 27 Jan 2021 07:21:12 +0000 (07:21 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 27 Jan 2021 07:21:12 +0000 (07:21 +0000)
usr.sbin/vmctl/vmctl.c
usr.sbin/vmctl/vmctl.h

index 1e99f13..d8edbc0 100644 (file)
@@ -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
  *
index beb65ea..4fd2b78 100644 (file)
@@ -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 *);