diff options
author | 2009-01-28 17:57:15 +0000 | |
---|---|---|
committer | 2009-01-28 17:57:15 +0000 | |
commit | 63b867f8ea86a239a96b66c05e014cb4462ea160 (patch) | |
tree | 62123d0652c64b92e5a41fc2972550047378087d | |
parent | relayhost flags were not properly copied to the relayhost array of the (diff) | |
download | wireguard-openbsd-63b867f8ea86a239a96b66c05e014cb4462ea160.tar.xz wireguard-openbsd-63b867f8ea86a239a96b66c05e014cb4462ea160.zip |
cleaning up my tree: trivial KNF and a comment fix.
-rw-r--r-- | sbin/isakmpd/pf_key_v2.c | 5 | ||||
-rw-r--r-- | sbin/isakmpd/virtual.c | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c index 00e22ca0085..fc7b970a455 100644 --- a/sbin/isakmpd/pf_key_v2.c +++ b/sbin/isakmpd/pf_key_v2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_key_v2.c,v 1.184 2008/07/01 15:00:53 bluhm Exp $ */ +/* $OpenBSD: pf_key_v2.c,v 1.185 2009/01/28 17:57:15 hshoexer Exp $ */ /* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */ /* @@ -577,8 +577,7 @@ pf_key_v2_get_spi(size_t *sz, u_int8_t proto, struct sockaddr *src, goto cleanup; addr = 0; - len = - sizeof(struct sadb_address) + PF_KEY_V2_ROUND(SA_LEN(dst)); + len = sizeof(struct sadb_address) + PF_KEY_V2_ROUND(SA_LEN(dst)); addr = calloc(1, len); if (!addr) goto cleanup; diff --git a/sbin/isakmpd/virtual.c b/sbin/isakmpd/virtual.c index 8d60cf24089..86622fdcf85 100644 --- a/sbin/isakmpd/virtual.c +++ b/sbin/isakmpd/virtual.c @@ -1,4 +1,4 @@ -/* $OpenBSD: virtual.c,v 1.29 2008/10/21 13:32:56 markus Exp $ */ +/* $OpenBSD: virtual.c,v 1.30 2009/01/28 17:57:15 hshoexer Exp $ */ /* * Copyright (c) 2004 Håkan Olsson. All rights reserved. @@ -156,7 +156,7 @@ virtual_get_default(sa_family_t af) * * At the same time, we try to determine whether existing interfaces have * been rendered invalid; we do this by marking all virtual transports before - * we call virtual_bind_if () through if_map (), and then releasing those + * we call virtual_bind_if() through if_map(), and then releasing those * transports that have not been unmarked. */ void |