Content-Length: 258846 | pFad | http://github.com/postgrespro/postgres_cluster/commit/fe233366f2e3ca44609c805ce0604c1e2122c3f9

9A Fix compiler warning about format on Windows · postgrespro/postgres_cluster@fe23336 · GitHub
Skip to content

Commit fe23336

Browse files
committed
Fix compiler warning about format on Windows
On 64-bit Windows, pid_t is long long int, so a %d format isn't enough.
1 parent 0e936a2 commit fe23336

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/replication/walreceiver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ WalReceiverMain(void)
366366
if (wal_receiver_create_temp_slot)
367367
{
368368
snprintf(slotname, sizeof(slotname),
369-
"pg_walreceiver_%d", walrcv_get_backend_pid(wrconn));
369+
"pg_walreceiver_%lld",
370+
(long long int) walrcv_get_backend_pid(wrconn));
370371

371372
walrcv_create_slot(wrconn, slotname, true, 0, NULL);
372373
changed = true;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/fe233366f2e3ca44609c805ce0604c1e2122c3f9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy