summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-09 20:47:15 +0000
committerphk <phk@FreeBSD.org>1995-12-09 20:47:15 +0000
commit8cf28016080c1f47c139dd9c75419b6341e3eea6 (patch)
treeb3b5348d281b335289d67019c3b374bb2c369753 /sys/net/if_ethersubr.c
parent587bac24453813fa8b658cf27f22651f41628a6b (diff)
downloadFreeBSD-src-8cf28016080c1f47c139dd9c75419b6341e3eea6.zip
FreeBSD-src-8cf28016080c1f47c139dd9c75419b6341e3eea6.tar.gz
Staticize, clean lint.
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 086626c..b349efa 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93
- * $Id: if_ethersubr.c,v 1.10 1995/10/26 20:30:09 julian Exp $
+ * $Id: if_ethersubr.c,v 1.11 1995/10/29 15:32:03 phk Exp $
*/
#include <sys/param.h>
@@ -116,9 +116,11 @@ ether_output(ifp, m0, dst, rt0)
if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
senderr(ENETDOWN);
ifp->if_lastchange = time;
- if (rt = rt0) {
+ rt = rt0;
+ if (rt) {
if ((rt->rt_flags & RTF_UP) == 0) {
- if (rt0 = rt = rtalloc1(dst, 1, 0UL))
+ rt0 = rt = rtalloc1(dst, 1, 0UL);
+ if (rt0)
rt->rt_refcnt--;
else
senderr(EHOSTUNREACH);
@@ -529,8 +531,10 @@ ether_ifattach(ifp)
}
}
-u_char ether_ipmulticast_min[6] = { 0x01, 0x00, 0x5e, 0x00, 0x00, 0x00 };
-u_char ether_ipmulticast_max[6] = { 0x01, 0x00, 0x5e, 0x7f, 0xff, 0xff };
+static u_char ether_ipmulticast_min[6] =
+ { 0x01, 0x00, 0x5e, 0x00, 0x00, 0x00 };
+static u_char ether_ipmulticast_max[6] =
+ { 0x01, 0x00, 0x5e, 0x7f, 0xff, 0xff };
/*
* Add an Ethernet multicast address or range of addresses to the list for a
* given interface.
OpenPOWER on IntegriCloud