summaryrefslogtreecommitdiffstats
path: root/sys/netinet/if_ether.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-02 17:48:58 +0000
committerphk <phk@FreeBSD.org>1994-10-02 17:48:58 +0000
commitf3c1ed23270f2db1e6c2456439dd12b7b68e8bde (patch)
treec117ab448d9316a116c92751ddc54084d53fb88a /sys/netinet/if_ether.c
parent451659421c6fd9cc8d83d27e51ae1ba317522182 (diff)
downloadFreeBSD-src-f3c1ed23270f2db1e6c2456439dd12b7b68e8bde.zip
FreeBSD-src-f3c1ed23270f2db1e6c2456439dd12b7b68e8bde.tar.gz
GCC cleanup.
Reviewed by: Submitted by: Obtained from:
Diffstat (limited to 'sys/netinet/if_ether.c')
-rw-r--r--sys/netinet/if_ether.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 717814d..56b1b7c 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_ether.c 8.1 (Berkeley) 6/10/93
- * $Id: if_ether.c,v 1.3 1994/08/18 22:35:26 wollman Exp $
+ * $Id: if_ether.c,v 1.4 1994/10/01 21:50:33 wollman Exp $
*/
/*
@@ -310,7 +310,8 @@ arpresolve(ac, rt, m, dst, desten)
if (rt)
la = (struct llinfo_arp *)rt->rt_llinfo;
else {
- if (la = arplookup(SIN(dst)->sin_addr.s_addr, 1, 0))
+ la = arplookup(SIN(dst)->sin_addr.s_addr, 1, 0);
+ if (la)
rt = la->la_rt;
}
if (la == 0 || rt == 0) {
OpenPOWER on IntegriCloud