diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-13 22:01:45 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-13 22:01:45 +0100 |
commit | 45d28904b92c825d1ac88be9edae8baabcd4bba1 (patch) | |
tree | 7b1b259ba09d35867c141cf072707e6a0891f97a /auto_tests/onion_test.c | |
parent | a8823830d39bdbde8d4f4f34bfcb26dc4bf79741 (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.c | 4 |
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 | ||
326 | static _Bool first_ip, last_ip; | 326 | static bool first_ip, last_ip; |
327 | static void dht_ip_callback(void *object, int32_t number, IP_Port ip_port) | 327 | static 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 | ||
342 | static _Bool first, last; | 342 | static bool first, last; |
343 | static uint8_t first_dht_pk[crypto_box_PUBLICKEYBYTES]; | 343 | static uint8_t first_dht_pk[crypto_box_PUBLICKEYBYTES]; |
344 | static uint8_t last_dht_pk[crypto_box_PUBLICKEYBYTES]; | 344 | static uint8_t last_dht_pk[crypto_box_PUBLICKEYBYTES]; |
345 | 345 | ||