From 723534283c496225de3b895f5e2dba391d7c7952 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 7 May 2009 17:42:25 +0200 Subject: [PATCH] use bool instead of int --- src/libfreeswan/freeswan.h | 2 +- src/libfreeswan/ttoprotoport.c | 2 +- src/starter/confread.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libfreeswan/freeswan.h b/src/libfreeswan/freeswan.h index 172128a94b..bcae76aec9 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 4ff2a2f66d..c3d033168e 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 5c5b75b341..97050ffc18 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;