diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-14 16:48:35 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-14 16:48:35 +0100 |
commit | f1512b46b27808b0f1987a93671757e7b553eb42 (patch) | |
tree | adb96668a6a9b8d439222a2e0131dfc4aaaf3906 /src/microhttpd/test_upgrade.c | |
parent | 805182fb262d39802c3af2a79a1d39c0d5dd69fb (diff) | |
download | libmicrohttpd-f1512b46b27808b0f1987a93671757e7b553eb42.tar.gz libmicrohttpd-f1512b46b27808b0f1987a93671757e7b553eb42.zip |
convert more int to bool
Diffstat (limited to 'src/microhttpd/test_upgrade.c')
-rw-r--r-- | src/microhttpd/test_upgrade.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index 710af1a4..695a5e73 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -461,7 +461,7 @@ static pthread_t pt_client; | |||
461 | /** | 461 | /** |
462 | * Flag set to 1 once the test is finished. | 462 | * Flag set to 1 once the test is finished. |
463 | */ | 463 | */ |
464 | static int done; | 464 | static volatile bool done; |
465 | 465 | ||
466 | 466 | ||
467 | static void | 467 | static void |
@@ -728,7 +728,7 @@ run_usock_client (void *cls) | |||
728 | recv_all (*sock, | 728 | recv_all (*sock, |
729 | "Finished"); | 729 | "Finished"); |
730 | wr_close (*sock); | 730 | wr_close (*sock); |
731 | done = 1; | 731 | done = true; |
732 | return NULL; | 732 | return NULL; |
733 | } | 733 | } |
734 | 734 | ||
@@ -1005,7 +1005,7 @@ test_upgrade (int flags, | |||
1005 | pid_t pid = -1; | 1005 | pid_t pid = -1; |
1006 | #endif /* HTTPS_SUPPORT && HAVE_FORK && HAVE_WAITPID */ | 1006 | #endif /* HTTPS_SUPPORT && HAVE_FORK && HAVE_WAITPID */ |
1007 | 1007 | ||
1008 | done = 0; | 1008 | done = false; |
1009 | 1009 | ||
1010 | if (!test_tls) | 1010 | if (!test_tls) |
1011 | d = MHD_start_daemon (flags | MHD_USE_ERROR_LOG | MHD_ALLOW_UPGRADE, | 1011 | d = MHD_start_daemon (flags | MHD_USE_ERROR_LOG | MHD_ALLOW_UPGRADE, |