summaryrefslogtreecommitdiff
path: root/toxcore/friend_connection.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 /toxcore/friend_connection.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 'toxcore/friend_connection.c')
-rw-r--r--toxcore/friend_connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/friend_connection.c b/toxcore/friend_connection.c
index fa88f1bc..314f4e61 100644
--- a/toxcore/friend_connection.c
+++ b/toxcore/friend_connection.c
@@ -332,7 +332,7 @@ static int handle_status(void *object, int number, uint8_t status, void *userdat
332 return -1; 332 return -1;
333 } 333 }
334 334
335 _Bool call_cb = 0; 335 bool call_cb = 0;
336 336
337 if (status) { /* Went online. */ 337 if (status) { /* Went online. */
338 call_cb = 1; 338 call_cb = 1;