From b30e4c35c1ff7c8285f3ca0224da9e9b46c6b455 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 26 Jan 2021 18:25:07 +0000 Subject: [PATCH] one variable was common, fixing what I can. (the portable code in here is not in great shape, and I am ignoring it) --- usr.sbin/mopd/common/device.c | 4 ++-- usr.sbin/mopd/common/loop-bsd.c | 4 ++-- 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 *); -- 2.20.1