diff options
author | midipix <writeonce@midipix.org> | 2020-12-04 02:02:55 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-12-04 13:24:16 +0000 |
commit | ef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d (patch) | |
tree | 415bc361992bfee3e87e0619220909d8c542f2dd /src/ipc | |
parent | 9a449a25d26566c1a0c3e9d3e89e1ffc12e6bc4c (diff) | |
download | ntapi-ef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d.tar.bz2 ntapi-ef6024ad7dbf0c7e3b59ad007b03bbce5a6abb3d.tar.xz |
internals: ipc connections: use volatile type for book-keeping variables.
Diffstat (limited to 'src/ipc')
-rw-r--r-- | src/ipc/ntapi_ipc_connect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ipc/ntapi_ipc_connect.c b/src/ipc/ntapi_ipc_connect.c index 16f725e..eacbff2 100644 --- a/src/ipc/ntapi_ipc_connect.c +++ b/src/ipc/ntapi_ipc_connect.c @@ -12,8 +12,8 @@ #include "ntapi_impl.h" static int32_t __ipc_connect_return( - intptr_t * hlock, - int32_t status) + intptr_t volatile * hlock, + int32_t status) { at_store(hlock,0); return status; @@ -300,7 +300,7 @@ static int32_t __ipc_connect_by_attr( const nt_port_attr * conn; nt_port_attr * nconn; nt_ipc_conn * ipc; - intptr_t * hlock; + intptr_t volatile * hlock; nt_rtdata * rtdata; ntapi_internals * __internals; |