From 14fa6887c593aea58abfdfa86a3a0f6c866991cd Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 22 Apr 2020 23:55:29 +0000 Subject: [PATCH] Let loop.c own iflist --- usr.sbin/mopd/common/loop-bsd.c | 6 +++--- usr.sbin/mopd/common/loop-linux2.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.sbin/mopd/common/loop-bsd.c b/usr.sbin/mopd/common/loop-bsd.c index f556beb8d81a..fd3c89425d27 100644 --- a/usr.sbin/mopd/common/loop-bsd.c +++ b/usr.sbin/mopd/common/loop-bsd.c @@ -1,4 +1,4 @@ -/* $NetBSD: loop-bsd.c,v 1.12 2016/06/08 01:11:49 christos Exp $ */ +/* $NetBSD: loop-bsd.c,v 1.13 2020/04/22 23:55:29 joerg Exp $ */ /* * Copyright (c) 1993-95 Mats O Jansson. All rights reserved. @@ -26,7 +26,7 @@ #include "port.h" #ifndef lint -__RCSID("$NetBSD: loop-bsd.c,v 1.12 2016/06/08 01:11:49 christos Exp $"); +__RCSID("$NetBSD: loop-bsd.c,v 1.13 2020/04/22 23:55:29 joerg Exp $"); #endif #include @@ -87,7 +87,7 @@ mopReadDL(void) * The list of all interfaces that are being listened to. loop() * "polls" on the descriptors in this list. */ -struct if_info *iflist; +extern struct if_info *iflist; void mopProcess(struct if_info *, u_char *); diff --git a/usr.sbin/mopd/common/loop-linux2.c b/usr.sbin/mopd/common/loop-linux2.c index b34bd8993a66..db968329c6df 100644 --- a/usr.sbin/mopd/common/loop-linux2.c +++ b/usr.sbin/mopd/common/loop-linux2.c @@ -1,4 +1,4 @@ -/* $NetBSD: loop-linux2.c,v 1.2 2019/12/07 04:55:01 christos Exp $ */ +/* $NetBSD: loop-linux2.c,v 1.3 2020/04/22 23:55:29 joerg Exp $ */ /* * Copyright (c) 1993-95 Mats O Jansson. All rights reserved. @@ -26,7 +26,7 @@ #include "port.h" #ifndef lint -__RCSID("$NetBSD: loop-linux2.c,v 1.2 2019/12/07 04:55:01 christos Exp $"); +__RCSID("$NetBSD: loop-linux2.c,v 1.3 2020/04/22 23:55:29 joerg Exp $"); #endif #include @@ -82,7 +82,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 *);