summaryrefslogtreecommitdiffhomepage
path: root/src/sem
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-03-16 23:15:24 +0000
committermidipix <writeonce@midipix.org>2018-03-20 23:27:57 -0400
commita738157be0ea0c08564aadf6f59df5f3702ce8ce (patch)
tree04b9b83f616397e4cd49610142c92976f8453006 /src/sem
parent12d3bfc13a7b31e68b54619b526817d92b033a27 (diff)
downloadntapi-a738157be0ea0c08564aadf6f59df5f3702ce8ce.tar.bz2
ntapi-a738157be0ea0c08564aadf6f59df5f3702ce8ce.tar.xz
code maintenance: incorporate use of the __offsetof convenience macro.
Diffstat (limited to 'src/sem')
-rw-r--r--src/sem/ntapi_sem_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sem/ntapi_sem_connect.c b/src/sem/ntapi_sem_connect.c
index 2dc9a94..33a4541 100644
--- a/src/sem/ntapi_sem_connect.c
+++ b/src/sem/ntapi_sem_connect.c
@@ -114,7 +114,7 @@ static int32_t __sempid_symlink_set(
__ntapi->tt_port_name_from_attr(
&svcname,&semctl->attr);
- str.strlen = (uint16_t)(size_t)(&(((nt_port_name *)0)->null_termination));
+ str.strlen = (uint16_t)(__offsetof(nt_port_name,null_termination));
str.maxlen = sizeof(nt_port_name);
str.buffer = svcname.base_named_objects;