1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

Use correct format placeholder for WSAGetLastError()

Some code thought this was unsigned, but it's signed int.
This commit is contained in:
Peter Eisentraut
2021-04-23 13:27:01 +02:00
parent 6bbcff096f
commit 9486844f30
4 changed files with 6 additions and 6 deletions

View File

@ -1985,7 +1985,7 @@ setKeepalivesWin32(PGconn *conn)
!= 0)
{
appendPQExpBuffer(&conn->errorMessage,
libpq_gettext("WSAIoctl(SIO_KEEPALIVE_VALS) failed: %ui\n"),
libpq_gettext("WSAIoctl(SIO_KEEPALIVE_VALS) failed: %d\n"),
WSAGetLastError());
return 0;
}