summaryrefslogtreecommitdiff
path: root/auto_tests/onion_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-13 22:01:45 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-13 22:01:45 +0100
commit45d28904b92c825d1ac88be9edae8baabcd4bba1 (patch)
tree7b1b259ba09d35867c141cf072707e6a0891f97a /auto_tests/onion_test.c
parenta8823830d39bdbde8d4f4f34bfcb26dc4bf79741 (diff)
Use <stdbool.h> 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.
Diffstat (limited to 'auto_tests/onion_test.c')
-rw-r--r--auto_tests/onion_test.c4
1 files changed, 2 insertions, 2 deletions
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)
323#define NUM_FIRST 7 323#define NUM_FIRST 7
324#define NUM_LAST 37 324#define NUM_LAST 37
325 325
326static _Bool first_ip, last_ip; 326static bool first_ip, last_ip;
327static void dht_ip_callback(void *object, int32_t number, IP_Port ip_port) 327static void dht_ip_callback(void *object, int32_t number, IP_Port ip_port)
328{ 328{
329 if (NUM_FIRST == number) { 329 if (NUM_FIRST == number) {
@@ -339,7 +339,7 @@ static void dht_ip_callback(void *object, int32_t number, IP_Port ip_port)
339 ck_abort_msg("Error."); 339 ck_abort_msg("Error.");
340} 340}
341 341
342static _Bool first, last; 342static bool first, last;
343static uint8_t first_dht_pk[crypto_box_PUBLICKEYBYTES]; 343static uint8_t first_dht_pk[crypto_box_PUBLICKEYBYTES];
344static uint8_t last_dht_pk[crypto_box_PUBLICKEYBYTES]; 344static uint8_t last_dht_pk[crypto_box_PUBLICKEYBYTES];
345 345