summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_esp.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-03-21 21:00:10 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-03-21 21:00:10 +0000
commit3867b5dd3c4e5b5ed1fe9ba668f14618f47b8575 (patch)
treea00c7fcd7321d9b3aa78a653718f5a6ebf38011f /sys/netinet/ip_esp.c
parent4f0d336732bdfdf963146917b10261f6336a1226 (diff)
Fix casting so it compiles on alphas (testing by janjaap@stack.nl,
closing pr #1150)
Diffstat (limited to 'sys/netinet/ip_esp.c')
-rw-r--r--sys/netinet/ip_esp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c
index 57ee4adb935..88cff22e6f8 100644
--- a/sys/netinet/ip_esp.c
+++ b/sys/netinet/ip_esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp.c,v 1.33 2000/03/17 10:25:22 angelos Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.34 2000/03/21 21:00:09 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -406,8 +406,8 @@ esp_input(struct mbuf *m, struct tdb *tdb, int skip, int protoff)
/* These are passed as-is to the callback */
crp->crp_opaque1 = (caddr_t) tdb;
- crp->crp_opaque2 = (caddr_t) skip;
- crp->crp_opaque3 = (caddr_t) protoff;
+ (long) crp->crp_opaque2 = skip;
+ (long) crp->crp_opaque3 = protoff;
/* Decryption descriptor */
if (espx)
@@ -460,8 +460,8 @@ esp_input_cb(void *op)
tdb = (struct tdb *) crp->crp_opaque1;
esph = (struct auth_hash *) tdb->tdb_authalgxform;
espx = (struct enc_xform *) tdb->tdb_encalgxform;
- skip = (int) crp->crp_opaque2;
- protoff = (int) crp->crp_opaque3;
+ skip = (long) crp->crp_opaque2;
+ protoff = (long) crp->crp_opaque3;
m = (struct mbuf *) crp->crp_buf;
tdb->tdb_ref--;