summaryrefslogtreecommitdiff
path: root/toxcore/tox.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/tox.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/tox.c')
-rw-r--r--toxcore/tox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 9ec472c0..463238b5 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -179,7 +179,7 @@ Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error)
179{ 179{
180 Messenger_Options m_options = {0}; 180 Messenger_Options m_options = {0};
181 181
182 _Bool load_savedata_sk = 0, load_savedata_tox = 0; 182 bool load_savedata_sk = 0, load_savedata_tox = 0;
183 183
184 if (options == NULL) { 184 if (options == NULL) {
185 m_options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT; 185 m_options.ipv6enabled = TOX_ENABLE_IPV6_DEFAULT;