aboutsummaryrefslogtreecommitdiffstats
path: root/src/libfreeswan
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/libfreeswan
parent433c0968e4781bfb005026aa781c4428913c2206 (diff)
downloadstrongswan-723534283c496225de3b895f5e2dba391d7c7952.tar.bz2
strongswan-723534283c496225de3b895f5e2dba391d7c7952.tar.xz
use bool instead of int
Diffstat (limited to 'src/libfreeswan')
-rw-r--r--src/libfreeswan/freeswan.h2
-rw-r--r--src/libfreeswan/ttoprotoport.c2
2 files changed, 2 insertions, 2 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];