summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/sa.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2004-04-07 22:45:51 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2004-04-07 22:45:51 +0000
commit49d2f3fa3f28f59974356f9256569c156a6e2659 (patch)
tree2f9f6a51fd70bf3de44250e6ac22400b4541e1b8 /sbin/isakmpd/sa.c
parentde3137aa6e339718ed70674a6b71f23a6e16ac4f (diff)
-Wsign-compare nits. hshoexer@ ok.
Diffstat (limited to 'sbin/isakmpd/sa.c')
-rw-r--r--sbin/isakmpd/sa.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/isakmpd/sa.c b/sbin/isakmpd/sa.c
index 6011ffb4e70..35a11c6cbd7 100644
--- a/sbin/isakmpd/sa.c
+++ b/sbin/isakmpd/sa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sa.c,v 1.78 2004/04/07 20:04:34 ho Exp $ */
+/* $OpenBSD: sa.c,v 1.79 2004/04/07 22:45:49 ho Exp $ */
/* $EOM: sa.c,v 1.112 2000/12/12 00:22:52 niklas Exp $ */
/*
@@ -474,7 +474,7 @@ report_spi (FILE *fd, const u_int8_t *buf, size_t sz, int spi)
{
#define SBUFSZ (2 * 32 + 9)
char s[SBUFSZ];
- int i, j;
+ size_t i, j;
for (i = j = 0; i < sz;)
{
@@ -917,7 +917,8 @@ sa_validate_proto_xf (struct proto *match, struct payload *xf, int phase)
{
struct proto_attr *pa;
struct attr_validation_state *avs;
- int i, found = 0;
+ int found = 0;
+ size_t i;
u_int8_t xf_id;
if (!match->xf_cnt)
@@ -1190,7 +1191,7 @@ sa_flag (char *attr)
{ "__ondemand", SA_FLAG_ONDEMAND },
{ "ikecfg", SA_FLAG_IKECFG },
};
- int i;
+ size_t i;
for (i = 0; i < sizeof sa_flag_map / sizeof sa_flag_map[0]; i++)
if (strcasecmp (attr, sa_flag_map[i].name) == 0)