aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-05-07 17:42:25 +0200
committerTobias Brunner <tobias@strongswan.org>2009-05-07 17:42:25 +0200
commit723534283c496225de3b895f5e2dba391d7c7952 (patch)
treef35ffc9c18d985d704821f70e2dc09b298d58644 /src
parent433c0968e4781bfb005026aa781c4428913c2206 (diff)
downloadstrongswan-723534283c496225de3b895f5e2dba391d7c7952.tar.bz2
strongswan-723534283c496225de3b895f5e2dba391d7c7952.tar.xz
use bool instead of int
Diffstat (limited to 'src')
-rw-r--r--src/libfreeswan/freeswan.h2
-rw-r--r--src/libfreeswan/ttoprotoport.c2
-rw-r--r--src/starter/confread.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libfreeswan/freeswan.h b/src/libfreeswan/freeswan.h
index 172128a94..bcae76aec 100644
--- a/src/libfreeswan/freeswan.h
+++ b/src/libfreeswan/freeswan.h
@@ -169,7 +169,7 @@ size_t splitkeytoid(const unsigned char *e, size_t elen, const unsigned char *m,
size_t mlen, char *dst, size_t dstlen);
#define KEYID_BUF 10 /* up to 9 text digits plus NUL */
err_t ttoprotoport(char *src, size_t src_len, u_int8_t *proto, u_int16_t *port,
- int *has_port_wildcard);
+ bool *has_port_wildcard);
/* initializations */
void initsaid(const ip_address *addr, ipsec_spi_t spi, int proto, ip_said *dst);
diff --git a/src/libfreeswan/ttoprotoport.c b/src/libfreeswan/ttoprotoport.c
index 4ff2a2f66..c3d033168 100644
--- a/src/libfreeswan/ttoprotoport.c
+++ b/src/libfreeswan/ttoprotoport.c
@@ -26,7 +26,7 @@ char *src; /* input string */
size_t src_len; /* length of input string, use strlen() if 0 */
u_int8_t *proto; /* extracted protocol number */
u_int16_t *port; /* extracted port number if it exists */
-int *has_port_wildcard; /* set if port is %any */
+bool *has_port_wildcard; /* set if port is %any */
{
char *end, *service_name;
char proto_name[16];
diff --git a/src/starter/confread.c b/src/starter/confread.c
index 5c5b75b34..97050ffc1 100644
--- a/src/starter/confread.c
+++ b/src/starter/confread.c
@@ -142,7 +142,7 @@ kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token
{
err_t ugh = NULL;
bool assigned = FALSE;
- int has_port_wildcard; /* set if port is %any */
+ bool has_port_wildcard; /* set if port is %any */
char *name = kw->entry->name;
char *value = kw->value;