diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-20 16:28:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-20 16:28:23 +0000 |
commit | aafecd1a09c1c2a94ac5dfdfc494ff71f62a40dc (patch) | |
tree | e2c5f79abbf24da0394b0ff520163ee2e70078ab | |
parent | f95bf0159b9d317656e04f36a7b45f5984a04918 (diff) |
two iterators should be u_int; ok jsg
-rw-r--r-- | sbin/iked/ikev2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c index 5952d7be1b0..426256569e4 100644 --- a/sbin/iked/ikev2.c +++ b/sbin/iked/ikev2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ikev2.c,v 1.21 2010/07/03 16:59:35 reyk Exp $ */ +/* $OpenBSD: ikev2.c,v 1.22 2010/07/20 16:28:22 deraadt Exp $ */ /* $vantronix: ikev2.c,v 1.101 2010/06/03 07:57:33 reyk Exp $ */ /* @@ -1320,9 +1320,10 @@ ikev2_add_proposals(struct iked *env, struct iked_sa *sa, struct ibuf *buf, struct iked_transform *xform; struct iked_proposal *prop; struct iked_childsa csa; - ssize_t i, length = 0, saplength, ret, n; + ssize_t length = 0, saplength, ret, n; u_int64_t spi64; u_int32_t spi32, spi; + u_int i; n = 0; TAILQ_FOREACH(prop, proposals, prop_entry) { @@ -3259,7 +3260,7 @@ ikev2_valid_proposal(struct iked_proposal *prop, struct iked_transform **exf, struct iked_transform **ixf) { struct iked_transform *xform, *encrxf, *integrxf; - size_t i; + u_int i; switch (prop->prop_protoid) { case IKEV2_SAPROTO_ESP: |