summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-05-10 01:52:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-05-10 01:52:35 +0000
commit1a188db0ecb6471d861af6a47492abfcf6eecf79 (patch)
tree5b1212e6bc971b76e910dfccecbb5164c19d28db /sys
parentf47b82f2a8d5e2fa67e242d96198f7c383682735 (diff)
convert sdltosa to a real cast because I removed the silly makro last night.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_ethersubr.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 974046bf7ed..48af47dd281 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ethersubr.c,v 1.120 2008/05/09 00:37:43 claudio Exp $ */
+/* $OpenBSD: if_ethersubr.c,v 1.121 2008/05/10 01:52:34 claudio Exp $ */
/* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */
/*
@@ -340,9 +340,11 @@ ether_output(ifp0, m0, dst, rt0)
switch (dst->sa_family) {
case AF_LINK:
- if (satosdl(dst)->sdl_alen < sizeof(edst))
+ if (((struct sockaddr_dl *)dst)->sdl_alen <
+ sizeof(edst))
senderr(EHOSTUNREACH);
- bcopy(LLADDR(satosdl(dst)), edst, sizeof(edst));
+ bcopy(LLADDR(((struct sockaddr_dl *)dst)), edst,
+ sizeof(edst));
break;
case AF_INET:
if (!arpresolve(ac, rt, m, dst, edst))