summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2021-01-26 18:25:07 +0000
committerderaadt <deraadt@openbsd.org>2021-01-26 18:25:07 +0000
commitb30e4c35c1ff7c8285f3ca0224da9e9b46c6b455 (patch)
tree418a0729f63630bedee9bd3aadbe8774dedf4cd7
parentsatisfy -fno-common, by (1) copying all the variable decls from (diff)
downloadwireguard-openbsd-b30e4c35c1ff7c8285f3ca0224da9e9b46c6b455.tar.xz
wireguard-openbsd-b30e4c35c1ff7c8285f3ca0224da9e9b46c6b455.zip
one variable was common, fixing what I can.
(the portable code in here is not in great shape, and I am ignoring it)
-rw-r--r--usr.sbin/mopd/common/device.c4
-rw-r--r--usr.sbin/mopd/common/loop-bsd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/mopd/common/device.c b/usr.sbin/mopd/common/device.c
index 5135f4dd05d..e04d5a210bb 100644
--- a/usr.sbin/mopd/common/device.c
+++ b/usr.sbin/mopd/common/device.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: device.c,v 1.17 2017/01/21 08:33:51 krw Exp $ */
+/* $OpenBSD: device.c,v 1.18 2021/01/26 18:25:07 deraadt Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
@@ -30,7 +30,7 @@
#include "mopdef.h"
#include "pf.h"
-struct if_info *iflist; /* Interface List */
+extern struct if_info *iflist; /* Interface List */
#ifdef DEV_NEW_CONF
/*
diff --git a/usr.sbin/mopd/common/loop-bsd.c b/usr.sbin/mopd/common/loop-bsd.c
index 9822038ae1b..81d45ac80ea 100644
--- a/usr.sbin/mopd/common/loop-bsd.c
+++ b/usr.sbin/mopd/common/loop-bsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: loop-bsd.c,v 1.13 2009/10/27 23:59:52 deraadt Exp $ */
+/* $OpenBSD: loop-bsd.c,v 1.14 2021/01/26 18:25:07 deraadt Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
@@ -72,7 +72,7 @@ mopReadDL(void)
* The list of all interfaces that are being listened to. loop()
* "selects" on the descriptors in this list.
*/
-struct if_info *iflist;
+extern struct if_info *iflist;
void mopProcess(struct if_info *, u_char *);