From 339d115139b4e2e02ecede9bed920acc7282a5b6 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 22 Apr 2020 23:57:56 +0000 Subject: [PATCH] loop.c owns iflist --- usr.sbin/mopd/mopchk/mopchk.c | 6 +++--- usr.sbin/mopd/mopd/mopd.c | 6 +++--- usr.sbin/mopd/mopprobe/mopprobe.c | 6 +++--- usr.sbin/mopd/moptrace/moptrace.c | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/usr.sbin/mopd/mopchk/mopchk.c b/usr.sbin/mopd/mopchk/mopchk.c index 5800775b23c9..39a83a76b9a2 100644 --- a/usr.sbin/mopd/mopchk/mopchk.c +++ b/usr.sbin/mopd/mopchk/mopchk.c @@ -1,4 +1,4 @@ -/* $NetBSD: mopchk.c,v 1.14 2016/06/08 01:15:26 christos Exp $ */ +/* $NetBSD: mopchk.c,v 1.15 2020/04/22 23:57:56 joerg Exp $ */ /* * Copyright (c) 1995-96 Mats O Jansson. All rights reserved. @@ -26,7 +26,7 @@ #include "port.h" #ifndef lint -__RCSID("$NetBSD: mopchk.c,v 1.14 2016/06/08 01:15:26 christos Exp $"); +__RCSID("$NetBSD: mopchk.c,v 1.15 2020/04/22 23:57:56 joerg Exp $"); #endif /* @@ -47,7 +47,7 @@ __RCSID("$NetBSD: mopchk.c,v 1.14 2016/06/08 01:15:26 christos Exp $"); * The list of all interfaces that are being listened to. rarp_loop() * "selects" on the descriptors in this list. */ -struct if_info *iflist; +extern struct if_info *iflist; __dead static void Usage(void); void mopProcess(struct if_info *, u_char *); diff --git a/usr.sbin/mopd/mopd/mopd.c b/usr.sbin/mopd/mopd/mopd.c index 04392abfe277..803612ae220c 100644 --- a/usr.sbin/mopd/mopd/mopd.c +++ b/usr.sbin/mopd/mopd/mopd.c @@ -1,4 +1,4 @@ -/* $NetBSD: mopd.c,v 1.15 2016/06/08 01:11:49 christos Exp $ */ +/* $NetBSD: mopd.c,v 1.16 2020/04/22 23:57:56 joerg Exp $ */ /* * Copyright (c) 1993-96 Mats O Jansson. All rights reserved. @@ -25,7 +25,7 @@ */ #include "port.h" #ifndef lint -__RCSID("$NetBSD: mopd.c,v 1.15 2016/06/08 01:11:49 christos Exp $"); +__RCSID("$NetBSD: mopd.c,v 1.16 2020/04/22 23:57:56 joerg Exp $"); #endif /* @@ -51,7 +51,7 @@ __RCSID("$NetBSD: mopd.c,v 1.15 2016/06/08 01:11:49 christos Exp $"); * The list of all interfaces that are being listened to. * "selects" on the descriptors in this list. */ -struct if_info *iflist; +extern struct if_info *iflist; __dead static void Usage(void); void mopProcess(struct if_info *, u_char *); diff --git a/usr.sbin/mopd/mopprobe/mopprobe.c b/usr.sbin/mopd/mopprobe/mopprobe.c index fbe59e6e6b74..fcabde3ddfd9 100644 --- a/usr.sbin/mopd/mopprobe/mopprobe.c +++ b/usr.sbin/mopd/mopprobe/mopprobe.c @@ -1,4 +1,4 @@ -/* $NetBSD: mopprobe.c,v 1.13 2016/06/08 01:17:54 christos Exp $ */ +/* $NetBSD: mopprobe.c,v 1.14 2020/04/22 23:57:56 joerg Exp $ */ /* * Copyright (c) 1993-96 Mats O Jansson. All rights reserved. @@ -26,7 +26,7 @@ #include "port.h" #ifndef lint -__RCSID("$NetBSD: mopprobe.c,v 1.13 2016/06/08 01:17:54 christos Exp $"); +__RCSID("$NetBSD: mopprobe.c,v 1.14 2020/04/22 23:57:56 joerg Exp $"); #endif /* @@ -51,7 +51,7 @@ __RCSID("$NetBSD: mopprobe.c,v 1.13 2016/06/08 01:17:54 christos Exp $"); * The list of all interfaces that are being listened to. rarp_loop() * "selects" on the descriptors in this list. */ -struct if_info *iflist; +extern struct if_info *iflist; __dead static void Usage(void); void mopProcess(struct if_info *, u_char *); diff --git a/usr.sbin/mopd/moptrace/moptrace.c b/usr.sbin/mopd/moptrace/moptrace.c index 431ab4cdff64..4e64a49a89ed 100644 --- a/usr.sbin/mopd/moptrace/moptrace.c +++ b/usr.sbin/mopd/moptrace/moptrace.c @@ -1,4 +1,4 @@ -/* $NetBSD: moptrace.c,v 1.12 2016/06/08 01:19:05 christos Exp $ */ +/* $NetBSD: moptrace.c,v 1.13 2020/04/22 23:57:56 joerg Exp $ */ /* * Copyright (c) 1993-95 Mats O Jansson. All rights reserved. @@ -26,7 +26,7 @@ #include "port.h" #ifndef lint -__RCSID("$NetBSD: moptrace.c,v 1.12 2016/06/08 01:19:05 christos Exp $"); +__RCSID("$NetBSD: moptrace.c,v 1.13 2020/04/22 23:57:56 joerg Exp $"); #endif /* @@ -51,7 +51,7 @@ __RCSID("$NetBSD: moptrace.c,v 1.12 2016/06/08 01:19:05 christos Exp $"); * The list of all interfaces that are being listened to. * "selects" on the descriptors in this list. */ -struct if_info *iflist; +extern struct if_info *iflist; __dead static void Usage(void); void mopProcess(struct if_info *, u_char *);