summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-08-27 18:26:17 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-08-27 18:26:17 +0000
commit216a0c623c400b53e0b1f5be1ec88b64be67d620 (patch)
tree1826ee0fb16aa419d4622f66849b837488b558f6 /sbin
parent3f82c52838f92c3ccbcb212e8dc16b4b972d3c72 (diff)
Compile on alpha.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/pf_key_v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c
index bd93206c704..b753e719073 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.88 2001/08/25 07:42:19 niklas Exp $ */
+/* $OpenBSD: pf_key_v2.c,v 1.89 2001/08/27 18:26:16 ho Exp $ */
/* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */
/*
@@ -770,7 +770,7 @@ pf_key_v2_get_spi (size_t *sz, u_int8_t proto, struct sockaddr *src,
goto cleanup;
/* XXX This is ugly. */
if (proto == IPSEC_PROTO_IPCOMP)
- *(u_int16_t *)spi = *(u_int16_t *)sa->sadb_sa_spi;
+ *(u_int16_t *)spi = (u_int16_t)sa->sadb_sa_spi;
else
memcpy (spi, &sa->sadb_sa_spi, *sz);