--------------------- PatchSet 10263 Date: 2007/12/16 17:40:57 Author: serassio Branch: nt Tag: (none) Log: Ran indent Members: src/win32.c:1.7.8.20->1.7.8.21 Index: squid/src/win32.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/win32.c,v retrieving revision 1.7.8.20 retrieving revision 1.7.8.21 diff -u -r1.7.8.20 -r1.7.8.21 --- squid/src/win32.c 16 Dec 2007 17:39:22 -0000 1.7.8.20 +++ squid/src/win32.c 16 Dec 2007 17:40:57 -0000 1.7.8.21 @@ -92,7 +92,7 @@ #define CHANGESERVICECONFIG2 "ChangeServiceConfig2A" #endif #undef NotifyAddrChange -typedef DWORD(WINAPI * PFNotifyAddrChange)(OUT PHANDLE, IN LPOVERLAPPED); +typedef DWORD(WINAPI * PFNotifyAddrChange) (OUT PHANDLE, IN LPOVERLAPPED); #define NOTIFYADDRCHANGE "NotifyAddrChange" #if USE_WIN32_SERVICE static SC_ACTION Squid_SCAction[] = @@ -383,7 +383,8 @@ _exit(0); } -void WIN32_IpAddrChangeMonitor() +void +WIN32_IpAddrChangeMonitor() { DWORD Result; HMODULE IPHLPAPIHandle; @@ -392,28 +393,28 @@ IPHLPAPIHandle = GetModuleHandle("IPHLPAPI"); NotifyAddrChange = (PFNotifyAddrChange) GetProcAddress(IPHLPAPIHandle, NOTIFYADDRCHANGE); - while ( TRUE ) { - Result = NotifyAddrChange(NULL,NULL); - if (Result != NO_ERROR) - { - debug(1, 1) ("NotifyAddrChange error %ld\n", Result); - break; - } + while (TRUE) { + Result = NotifyAddrChange(NULL, NULL); + if (Result != NO_ERROR) { + debug(1, 1) ("NotifyAddrChange error %ld\n", Result); + break; + } debug(1, 1) ("Notification of IP address change received, reconfiguring Squid ...\n"); reconfigure(SIGHUP); } } -DWORD WIN32_IpAddrChangeMonitorInit() +DWORD +WIN32_IpAddrChangeMonitorInit() { DWORD status = ERROR_SUCCESS; HANDLE thread; - ULONG threadID = 0; + ULONG threadID = 0; - thread = CreateThread(NULL, 0, (PTHREAD_START_ROUTINE)WIN32_IpAddrChangeMonitor, - NULL, 0, &threadID); + thread = CreateThread(NULL, 0, (PTHREAD_START_ROUTINE) WIN32_IpAddrChangeMonitor, + NULL, 0, &threadID); if (thread == NULL) { - status = GetLastError(); + status = GetLastError(); } CloseHandle(thread); return status; @@ -496,7 +497,7 @@ if (Win32SockInit() < 0) return 1; if (WIN32_OS_version > _WIN_OS_WINNT) { - if (WIN32_IpAddrChangeMonitorInit() != ERROR_SUCCESS) + if (WIN32_IpAddrChangeMonitorInit() != ERROR_SUCCESS) return 1; } #endif