diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-05-15 19:23:05 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-05-15 19:23:05 -0700 |
| commit | 59ee3628d5db511ce5527ce4ddbf126e929d7da8 (patch) | |
| tree | b50ee899adbc7a1066f8b0ced2316773ee2f064e /tests/ipcwinsec.c | |
| parent | f69b4c1da69d1e9c513ad63da488a49b6b46a706 (diff) | |
| download | nng-59ee3628d5db511ce5527ce4ddbf126e929d7da8.tar.gz nng-59ee3628d5db511ce5527ce4ddbf126e929d7da8.tar.bz2 nng-59ee3628d5db511ce5527ce4ddbf126e929d7da8.zip | |
fixes #430 Unable to build in MSYS + Win-builds
fixes #438 Consider dropping AI_V4MAPPED
Diffstat (limited to 'tests/ipcwinsec.c')
| -rw-r--r-- | tests/ipcwinsec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/ipcwinsec.c b/tests/ipcwinsec.c index e6d2a205..1c226c7c 100644 --- a/tests/ipcwinsec.c +++ b/tests/ipcwinsec.c @@ -25,7 +25,6 @@ #ifndef _WIN32 TestMain("IPC Security Descriptor", { - atexit(nng_fini); Convey("Given a socket and an IPC listener", { nng_socket s; @@ -94,7 +93,6 @@ TestMain("IPC Security Descriptor", { So(nng_listener_create(&l, s, "ipc://" ADDR) == 0); Convey("We can set security descriptor on Windows", { - SECURITY_DESCRIPTOR *sdesc; SID users; DWORD size; @@ -136,7 +134,7 @@ TestMain("IPC Security Descriptor", { Reset({ LocalFree(sd); }); So(dacl->AceCount == 1); - So(GetAce(dacl, 0, &ace) == TRUE); + So(GetAce(dacl, 0, (void **) &ace) == TRUE); allowed = (PACCESS_ALLOWED_ACE) ace; asid = (PSID) &allowed->SidStart; So(IsValidSid(asid)); @@ -145,7 +143,6 @@ TestMain("IPC Security Descriptor", { }); Convey("We cannot set security descriptor after started", { - SECURITY_DESCRIPTOR *sdesc; SID users; DWORD size; |
