diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2010-08-24 14:43:57 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2010-08-24 14:43:57 +0000 |
commit | d1f9fe53b3021f33b8b648ee1ba234bbe44fe46a (patch) | |
tree | 606c3597837d685aba041d100c66dad6f25a8524 /sys/net/if_fddisubr.c | |
parent | ccec58ca7e5b85e2ec0c39b2ac99e9945edb8fef (diff) |
legibility fixes:
1) one statement per line
2) label gets its own line, and doesn't share it with a statement
no functional change
"Let the turd shine." claudio@
Diffstat (limited to 'sys/net/if_fddisubr.c')
-rw-r--r-- | sys/net/if_fddisubr.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index dfb77c88e68..1fffd0df194 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_fddisubr.c,v 1.59 2010/05/07 13:33:16 claudio Exp $ */ +/* $OpenBSD: if_fddisubr.c,v 1.60 2010/08/24 14:43:56 blambert Exp $ */ /* $NetBSD: if_fddisubr.c,v 1.5 1996/05/07 23:20:21 christos Exp $ */ /* @@ -189,10 +189,12 @@ fddi_output(ifp0, m0, dst, rt0) if (rt->rt_gwroute == 0) goto lookup; if (((rt = rt->rt_gwroute)->rt_flags & RTF_UP) == 0) { - rtfree(rt); rt = rt0; - lookup: rt->rt_gwroute = rtalloc1(rt->rt_gateway, - RT_REPORT, ifp->if_rdomain); - if ((rt = rt->rt_gwroute) == 0) + rtfree(rt); + rt = rt0; + lookup: + rt->rt_gwroute = rtalloc1(rt->rt_gateway, + RT_REPORT, ifp->if_rdomain); + if ((rt = rt->rt_gwroute) == NULL) senderr(EHOSTUNREACH); } } |