From 45d28904b92c825d1ac88be9edae8baabcd4bba1 Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 13 Sep 2016 22:01:45 +0100 Subject: Use and replace _Bool with bool. This header is a requirement for the public API, therefore is assumed to exist. It is a C99 standard library header, and _Bool is not intended to be used directly, except in legacy code that defines bool (and true/false) itself. We don't use or depend on such code. None of our client code uses or depends on such code. There is no reason to not use bool. --- auto_tests/onion_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auto_tests/onion_test.c') diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c index dd5a1946..6e330091 100644 --- a/auto_tests/onion_test.c +++ b/auto_tests/onion_test.c @@ -323,7 +323,7 @@ static void kill_onions(Onions *on) #define NUM_FIRST 7 #define NUM_LAST 37 -static _Bool first_ip, last_ip; +static bool first_ip, last_ip; static void dht_ip_callback(void *object, int32_t number, IP_Port ip_port) { if (NUM_FIRST == number) { @@ -339,7 +339,7 @@ static void dht_ip_callback(void *object, int32_t number, IP_Port ip_port) ck_abort_msg("Error."); } -static _Bool first, last; +static bool first, last; static uint8_t first_dht_pk[crypto_box_PUBLICKEYBYTES]; static uint8_t last_dht_pk[crypto_box_PUBLICKEYBYTES]; -- cgit v1.2.3