use bool instead of int

This commit is contained in:
Tobias Brunner 2009-05-07 17:42:25 +02:00
parent 433c0968e4
commit 723534283c
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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];

View File

@ -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;