summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2018-05-02 22:03:25 +0100
committerRoy Marples <roy@marples.name>2018-05-02 22:03:25 +0100
commit2aca3a18d87c837b594b126b895c799185c5712f (patch)
treea58513d9eb63607f82511da3140da5a36aab5519
parentc15437c10472402bbf5b42f020d51b6539be480f (diff)
downloaddhcpcd-2aca3a18d87c837b594b126b895c799185c5712f.tar.xz
ipv6nd: use bools here
-rw-r--r--src/ipv6nd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 6b6fac94..5126d5ab 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -749,7 +749,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, struct interface *ifp,
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 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, struct interface *ifp,
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 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, struct interface *ifp,
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) {