mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Run pgindent on 9.2 source tree in preparation for first 9.3
commit-fest.
This commit is contained in:
@@ -42,8 +42,8 @@ LoadKernel32()
|
||||
kernel32 = LoadLibraryEx("kernel32.dll", NULL, 0);
|
||||
if (kernel32 == NULL)
|
||||
ereport(FATAL,
|
||||
(errmsg_internal("could not load kernel32.dll: error code %lu",
|
||||
GetLastError())));
|
||||
(errmsg_internal("could not load kernel32.dll: error code %lu",
|
||||
GetLastError())));
|
||||
}
|
||||
|
||||
|
||||
|
@@ -151,7 +151,7 @@ pgwin32_waitforsinglesocket(SOCKET s, int what, int timeout)
|
||||
(errmsg_internal("could not reset socket waiting event: error code %lu", GetLastError())));
|
||||
|
||||
/*
|
||||
* Track whether socket is UDP or not. (NB: most likely, this is both
|
||||
* Track whether socket is UDP or not. (NB: most likely, this is both
|
||||
* useless and wrong; there is no reason to think that the behavior of
|
||||
* WSAEventSelect is different for TCP and UDP.)
|
||||
*/
|
||||
@@ -160,8 +160,9 @@ pgwin32_waitforsinglesocket(SOCKET s, int what, int timeout)
|
||||
current_socket = s;
|
||||
|
||||
/*
|
||||
* Attach event to socket. NOTE: we must detach it again before returning,
|
||||
* since other bits of code may try to attach other events to the socket.
|
||||
* Attach event to socket. NOTE: we must detach it again before
|
||||
* returning, since other bits of code may try to attach other events to
|
||||
* the socket.
|
||||
*/
|
||||
if (WSAEventSelect(s, waitevent, what) != 0)
|
||||
{
|
||||
|
@@ -97,8 +97,8 @@ setitimer(int which, const struct itimerval * value, struct itimerval * ovalue)
|
||||
timerCommArea.event = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||
if (timerCommArea.event == NULL)
|
||||
ereport(FATAL,
|
||||
(errmsg_internal("could not create timer event: error code %lu",
|
||||
GetLastError())));
|
||||
(errmsg_internal("could not create timer event: error code %lu",
|
||||
GetLastError())));
|
||||
|
||||
MemSet(&timerCommArea.value, 0, sizeof(struct itimerval));
|
||||
|
||||
@@ -107,8 +107,8 @@ setitimer(int which, const struct itimerval * value, struct itimerval * ovalue)
|
||||
timerThreadHandle = CreateThread(NULL, 0, pg_timer_thread, NULL, 0, NULL);
|
||||
if (timerThreadHandle == INVALID_HANDLE_VALUE)
|
||||
ereport(FATAL,
|
||||
(errmsg_internal("could not create timer thread: error code %lu",
|
||||
GetLastError())));
|
||||
(errmsg_internal("could not create timer thread: error code %lu",
|
||||
GetLastError())));
|
||||
}
|
||||
|
||||
/* Request the timer thread to change settings */
|
||||
|
Reference in New Issue
Block a user