--------------------- PatchSet 10266 Date: 2007/12/16 19:32:31 Author: serassio Branch: nt Tag: (none) Log: Fix build error om MinGW Members: src/win32.c:1.7.8.21->1.7.8.22 Index: squid/src/win32.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/win32.c,v retrieving revision 1.7.8.21 retrieving revision 1.7.8.22 diff -u -r1.7.8.21 -r1.7.8.22 --- squid/src/win32.c 16 Dec 2007 17:40:57 -0000 1.7.8.21 +++ squid/src/win32.c 16 Dec 2007 19:32:31 -0000 1.7.8.22 @@ -383,8 +383,8 @@ _exit(0); } -void -WIN32_IpAddrChangeMonitor() +static DWORD WINAPI +WIN32_IpAddrChangeMonitor(LPVOID lpParam) { DWORD Result; HMODULE IPHLPAPIHandle; @@ -397,11 +397,12 @@ Result = NotifyAddrChange(NULL, NULL); if (Result != NO_ERROR) { debug(1, 1) ("NotifyAddrChange error %ld\n", Result); - break; + return 1; } debug(1, 1) ("Notification of IP address change received, reconfiguring Squid ...\n"); reconfigure(SIGHUP); } + return 0; } DWORD @@ -411,7 +412,7 @@ HANDLE thread; ULONG threadID = 0; - thread = CreateThread(NULL, 0, (PTHREAD_START_ROUTINE) WIN32_IpAddrChangeMonitor, + thread = CreateThread(NULL, 0, WIN32_IpAddrChangeMonitor, NULL, 0, &threadID); if (thread == NULL) { status = GetLastError();