From 59ee3628d5db511ce5527ce4ddbf126e929d7da8 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 15 May 2018 19:23:05 -0700 Subject: fixes #430 Unable to build in MSYS + Win-builds fixes #438 Consider dropping AI_V4MAPPED --- tests/ipcwinsec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/ipcwinsec.c') 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; -- cgit v1.2.3-70-g09d2