summaryrefslogtreecommitdiffhomepage
path: root/src/sem
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-12-04 02:02:55 +0000
committermidipix <writeonce@midipix.org>2020-12-04 13:24:16 +0000
commitef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d (patch)
tree415bc361992bfee3e87e0619220909d8c542f2dd /src/sem
parent9a449a25d26566c1a0c3e9d3e89e1ffc12e6bc4c (diff)
downloadntapi-ef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d.tar.bz2
ntapi-ef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d.tar.xz
internals: ipc connections: use volatile type for book-keeping variables.
Diffstat (limited to 'src/sem')
-rw-r--r--src/sem/ntapi_sem_ioctl.c8
-rw-r--r--src/sem/ntapi_sem_query.c8
-rw-r--r--src/sem/ntapi_sem_set.c8
3 files changed, 12 insertions, 12 deletions
diff --git a/src/sem/ntapi_sem_ioctl.c b/src/sem/ntapi_sem_ioctl.c
index 5c6a0a1..63f0eec 100644
--- a/src/sem/ntapi_sem_ioctl.c
+++ b/src/sem/ntapi_sem_ioctl.c
@@ -15,9 +15,9 @@
#include "ntapi_impl.h"
static int32_t __sem_ioctl_return(
- void * mapaddr,
- intptr_t * hlock,
- int32_t status)
+ void * mapaddr,
+ intptr_t volatile * hlock,
+ int32_t status)
{
if (hlock)
at_store(hlock,0);
@@ -49,7 +49,7 @@ int32_t __stdcall __ntapi_sem_ioctl(
void * secaddr;
size_t secsize;
nt_sem_info_msg msg;
- intptr_t * hlock;
+ intptr_t volatile * hlock;
(void)output_buffer;
(void)output_buffer_length;
diff --git a/src/sem/ntapi_sem_query.c b/src/sem/ntapi_sem_query.c
index 1a6b2e2..5f1ff6a 100644
--- a/src/sem/ntapi_sem_query.c
+++ b/src/sem/ntapi_sem_query.c
@@ -15,9 +15,9 @@
#include "ntapi_impl.h"
static int32_t __sem_query_return(
- void * mapaddr,
- intptr_t * hlock,
- int32_t status)
+ void * mapaddr,
+ intptr_t volatile * hlock,
+ int32_t status)
{
if (hlock)
at_store(hlock,0);
@@ -43,7 +43,7 @@ int32_t __stdcall __ntapi_sem_query(
void * secaddr;
size_t secsize;
nt_sem_info_msg msg;
- intptr_t * hlock;
+ intptr_t volatile * hlock;
/* validate */
if (!iosb)
diff --git a/src/sem/ntapi_sem_set.c b/src/sem/ntapi_sem_set.c
index b8b3ad1..ab42032 100644
--- a/src/sem/ntapi_sem_set.c
+++ b/src/sem/ntapi_sem_set.c
@@ -15,9 +15,9 @@
#include "ntapi_impl.h"
static int32_t __sem_set_return(
- void * mapaddr,
- intptr_t * hlock,
- int32_t status)
+ void * mapaddr,
+ intptr_t volatile * hlock,
+ int32_t status)
{
if (hlock)
at_store(hlock,0);
@@ -43,7 +43,7 @@ int32_t __stdcall __ntapi_sem_set(
void * secaddr;
size_t secsize;
nt_sem_info_msg msg;
- intptr_t * hlock;
+ intptr_t volatile * hlock;
/* validate */
if (!iosb)