diff options
author | ume <ume@FreeBSD.org> | 2003-10-06 14:02:09 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-06 14:02:09 +0000 |
commit | 6c1377b9efb980f7722b089efd455c1362419b76 (patch) | |
tree | 405658370f0fbb47ebebd2ecad933720d186cc45 /sys/netinet6/in6_prefix.c | |
parent | 08859b205f380a0e04ba5bfec234f9f14b1936b6 (diff) | |
download | FreeBSD-src-6c1377b9efb980f7722b089efd455c1362419b76.zip FreeBSD-src-6c1377b9efb980f7722b089efd455c1362419b76.tar.gz |
return(code) -> return (code)
(reduce diffs against KAME)
Diffstat (limited to 'sys/netinet6/in6_prefix.c')
-rw-r--r-- | sys/netinet6/in6_prefix.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/netinet6/in6_prefix.c b/sys/netinet6/in6_prefix.c index 4292cd4..6e4b94a 100644 --- a/sys/netinet6/in6_prefix.c +++ b/sys/netinet6/in6_prefix.c @@ -351,7 +351,7 @@ rr_are_ifid_equal(struct in6_addr *ii1, struct in6_addr *ii2, int ii_len) ii_len > 124) { /* as RFC2373, prefix is at least 4 bit */ log(LOG_ERR, "rr_are_ifid_equal: invalid ifid length(%d)\n", ii_len); - return(0); + return (0); } ii_bytelen = ii_len / 8; @@ -362,12 +362,12 @@ rr_are_ifid_equal(struct in6_addr *ii1, struct in6_addr *ii2, int ii_len) if (bcmp(ii1->s6_addr + p_bytelen + 1, ii2->s6_addr + p_bytelen + 1, ii_bytelen)) - return(0); + return (0); if (((ii1->s6_addr[p_bytelen] << p_bitlen) & 0xff) != ((ii2->s6_addr[p_bytelen] << p_bitlen) & 0xff)) - return(0); + return (0); - return(1); + return (1); } static struct rp_addr * @@ -425,7 +425,7 @@ in6_prefix_add_llifid(int iilen, struct in6_ifaddr *ia) int error, s; if ((error = create_ra_entry(&rap)) != 0) - return(error); + return (error); /* copy interface id part */ bit_copy((caddr_t)&rap->ra_ifid, sizeof(rap->ra_ifid) << 3, (caddr_t)IA6_IN6(ia), sizeof(*IA6_IN6(ia)) << 3, @@ -462,7 +462,7 @@ in6_prefix_add_ifid(int iilen, struct in6_ifaddr *ia) int error = 0; if (IN6_IS_ADDR_LINKLOCAL(IA6_IN6(ia))) - return(in6_prefix_add_llifid(iilen, ia)); + return (in6_prefix_add_llifid(iilen, ia)); ifpr = in6_prefixwithifp(ia->ia_ifp, plen, IA6_IN6(ia)); if (ifpr == NULL) { struct rr_prefix rp; @@ -694,7 +694,7 @@ rrpr_update(struct socket *so, struct rr_prefix *new) * preferable than the new one, ignore installation request. */ if (rpp->rp_origin > new->rp_origin) - return(EPERM); + return (EPERM); /* update prefix information */ rpp->rp_flags.prf_ra = new->rp_flags.prf_ra; @@ -735,7 +735,7 @@ rrpr_update(struct socket *so, struct rr_prefix *new) if (rpp == NULL) { log(LOG_ERR, "in6_prefix.c: rrpr_update:%d" ": ENOBUFS for rr_prefix\n", __LINE__); - return(ENOBUFS); + return (ENOBUFS); } /* initilization */ *rpp = *new; @@ -796,7 +796,7 @@ static int add_each_prefix(struct socket *so, struct rr_prefix *rpp) { init_prefix_ltimes(rpp); - return(rrpr_update(so, rpp)); + return (rrpr_update(so, rpp)); } static void @@ -961,7 +961,7 @@ delete_each_prefix(struct rr_prefix *rpp, u_char origin) int error = 0; if (rpp->rp_origin > origin) - return(EPERM); + return (EPERM); while (rpp->rp_addrhead.lh_first != NULL) { struct rp_addr *rap; |