Module Name:    src
Committed By:   joerg
Date:           Wed Apr 22 23:55:29 UTC 2020

Modified Files:
        src/usr.sbin/mopd/common: loop-bsd.c loop-linux2.c

Log Message:
Let loop.c own iflist


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/mopd/common/loop-bsd.c
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/mopd/common/loop-linux2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/mopd/common/loop-bsd.c
diff -u src/usr.sbin/mopd/common/loop-bsd.c:1.12 src/usr.sbin/mopd/common/loop-bsd.c:1.13
--- src/usr.sbin/mopd/common/loop-bsd.c:1.12	Wed Jun  8 01:11:49 2016
+++ src/usr.sbin/mopd/common/loop-bsd.c	Wed Apr 22 23:55:29 2020
@@ -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 <errno.h>
@@ -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 *);
 

Index: src/usr.sbin/mopd/common/loop-linux2.c
diff -u src/usr.sbin/mopd/common/loop-linux2.c:1.2 src/usr.sbin/mopd/common/loop-linux2.c:1.3
--- src/usr.sbin/mopd/common/loop-linux2.c:1.2	Sat Dec  7 04:55:01 2019
+++ src/usr.sbin/mopd/common/loop-linux2.c	Wed Apr 22 23:55:29 2020
@@ -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 <stdlib.h>
@@ -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 *);
 

Reply via email to