use bool instead of int
This commit is contained in:
parent
433c0968e4
commit
723534283c
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue