aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-15 15:33:42 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-15 17:04:51 +0300
commit8c4f7ce1ea84a2d2bf5aca6b09d98af4ecb71f61 (patch)
tree384eff3e24cec5cf2b5e54544b37051c6754a21d /src/microhttpd
parentb5a7f1835fba33549baf4e9945f47de36b773571 (diff)
downloadlibmicrohttpd-8c4f7ce1ea84a2d2bf5aca6b09d98af4ecb71f61.tar.gz
libmicrohttpd-8c4f7ce1ea84a2d2bf5aca6b09d98af4ecb71f61.zip
test_upgrade: use 'volatile' for variable with multithread access
Diffstat (limited to 'src/microhttpd')
-rw-r--r--src/microhttpd/test_upgrade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 81a36004..d2e0e536 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -572,7 +572,7 @@ static pthread_t pt;
572/** 572/**
573 * Will be set to the upgraded socket. 573 * Will be set to the upgraded socket.
574 */ 574 */
575static struct wr_socket *usock; 575static struct wr_socket *volatile usock;
576 576
577/** 577/**
578 * Thread we use to run the interaction with the upgraded socket. 578 * Thread we use to run the interaction with the upgraded socket.