diff options
author | midipix <writeonce@midipix.org> | 2018-03-16 23:15:24 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-03-20 23:27:57 -0400 |
commit | a738157be0ea0c08564aadf6f59df5f3702ce8ce (patch) | |
tree | 04b9b83f616397e4cd49610142c92976f8453006 /src/sem | |
parent | 12d3bfc13a7b31e68b54619b526817d92b033a27 (diff) | |
download | ntapi-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.c | 2 |
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; |