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/msq | |
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/msq')
-rw-r--r-- | src/msq/ntapi_msq_connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msq/ntapi_msq_connect.c b/src/msq/ntapi_msq_connect.c index c4a0f98..301adfa 100644 --- a/src/msq/ntapi_msq_connect.c +++ b/src/msq/ntapi_msq_connect.c @@ -114,7 +114,7 @@ static int32_t __msqpid_symlink_set( __ntapi->tt_port_name_from_attr( &svcname,&msqctl->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; |