Mercurial > hg > dhcpcd
changeset 4269:3050be161143 draft
ipv6nd: use bools here
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 02 May 2018 22:03:25 +0100 |
| parents | bd01addbb40f |
| children | b61f4d71a677 |
| files | src/ipv6nd.c |
| diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ipv6nd.c Wed May 02 22:01:18 2018 +0100 +++ b/src/ipv6nd.c Wed May 02 22:03:25 2018 +0100 @@ -749,7 +749,7 @@ struct in6_addr pi_prefix; struct ipv6_addr *ap; struct dhcp_opt *dho; - uint8_t new_rap, new_data; + bool new_rap, new_data; uint32_t old_lifetime; __printflike(1, 2) void (*logfunc)(const char *, ...); #ifdef IPV6_MANAGETEMPADDR @@ -821,9 +821,9 @@ free(rap->data); rap->data_len = 0; } - new_data = 1; + new_data = true; } else - new_data = 0; + new_data = false; if (rap == NULL) { rap = calloc(1, sizeof(*rap)); if (rap == NULL) { @@ -834,9 +834,9 @@ rap->from = ctx->from.sin6_addr; strlcpy(rap->sfrom, ctx->sfrom, sizeof(rap->sfrom)); TAILQ_INIT(&rap->addrs); - new_rap = 1; + new_rap = true; } else - new_rap = 0; + new_rap = false; if (rap->data_len == 0) { rap->data = malloc(len); if (rap->data == NULL) {
