diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-08-25 22:13:28 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-08-25 22:13:28 +0000 |
commit | 1efded2daf4bb49fd0ea178beab17a79ee653639 (patch) | |
tree | a269e57f981ad864eb76ecda85c72bd6475c4055 /sbin | |
parent | f00d16aa4fbd32becd24a08c97723cc515d6e839 (diff) |
Style
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/exchange.c | 10 | ||||
-rw-r--r-- | sbin/isakmpd/udp.c | 27 |
2 files changed, 19 insertions, 18 deletions
diff --git a/sbin/isakmpd/exchange.c b/sbin/isakmpd/exchange.c index 17560a034da..83c01f8127a 100644 --- a/sbin/isakmpd/exchange.c +++ b/sbin/isakmpd/exchange.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exchange.c,v 1.61 2001/08/22 07:09:03 angelos Exp $ */ +/* $OpenBSD: exchange.c,v 1.62 2001/08/25 22:13:27 niklas Exp $ */ /* $EOM: exchange.c,v 1.143 2000/12/04 00:02:25 angelos Exp $ */ /* @@ -1391,16 +1391,16 @@ exchange_finalize (struct message *msg) { handler = cert_get (exchange->recv_certtype); if (handler) - msg->isakmp_sa->recv_cert = - handler->cert_dup (exchange->recv_cert); + msg->isakmp_sa->recv_cert + = handler->cert_dup (exchange->recv_cert); } if (exchange->sent_certtype) { handler = cert_get (exchange->sent_certtype); if (handler) - msg->isakmp_sa->sent_cert = - handler->cert_dup (exchange->sent_cert); + msg->isakmp_sa->sent_cert + = handler->cert_dup (exchange->sent_cert); } LOG_DBG ((LOG_EXCHANGE, 10, diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c index 3ed3056d716..cec34238a38 100644 --- a/sbin/isakmpd/udp.c +++ b/sbin/isakmpd/udp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp.c,v 1.50 2001/08/23 23:32:35 angelos Exp $ */ +/* $OpenBSD: udp.c,v 1.51 2001/08/25 22:13:27 niklas Exp $ */ /* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */ /* @@ -125,8 +125,8 @@ udp_listen_lookup (struct sockaddr *addr) struct udp_transport *u; for (u = LIST_FIRST (&udp_listen_list); u; u = LIST_NEXT (u, link)) - if (u->src->sa_len == addr->sa_len && - memcmp (u->src, addr, addr->sa_len) == 0) + if (u->src->sa_len == addr->sa_len + && memcmp (u->src, addr, addr->sa_len) == 0) return u; return 0; } @@ -213,7 +213,8 @@ err: close (s); if (t) { - t->s = -1; /* already closed */ + /* Already closed. */ + t->s = -1; udp_remove (&t->transport); } return 0; @@ -332,12 +333,12 @@ udp_bind_if (char *ifname, struct sockaddr *if_addr, void *arg) switch (saddr.sa_family) /* Add the port number to the sockaddr. */ { case AF_INET: - ((struct sockaddr_in *)&saddr)->sin_port = - htons (strtol (port, &ep, 10)); + ((struct sockaddr_in *)&saddr)->sin_port + = htons (strtol (port, &ep, 10)); break; case AF_INET6: - ((struct sockaddr_in6 *)&saddr)->sin6_port = - htons (strtol (port, &ep, 10)); + ((struct sockaddr_in6 *)&saddr)->sin6_port + = htons (strtol (port, &ep, 10)); break; } @@ -478,8 +479,8 @@ udp_create (char *name) addr_str = conf_get_str ("General", "Listen-on"); if (!addr_str) { - if ((dst->sa_family == AF_INET && !default_transport) || - (dst->sa_family == AF_INET6 && !default_transport6)) + if ((dst->sa_family == AF_INET && !default_transport) + || (dst->sa_family == AF_INET6 && !default_transport6)) { log_print ("udp_create: no default transport"); rv = 0; @@ -579,12 +580,12 @@ udp_reinit (void) /* Mark all UDP transports, except the default ones. */ for (u = LIST_FIRST (&udp_listen_list); u; u = LIST_NEXT (u, link)) - if (&u->transport != default_transport && - &u->transport != default_transport6) + if (&u->transport != default_transport + && &u->transport != default_transport6) u->transport.flags |= TRANSPORT_MARK; /* Re-probe interface list. */ - /* XXX need to check errors */ + /* XXX need to check errors. */ if_map (udp_bind_if, udp_default_port ? udp_default_port : "500"); /* |