summaryrefslogtreecommitdiff
path: root/src/backend/tcop/backend_startup.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-02-23 14:26:39 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-02-23 14:27:02 +0100
commit454c182f8542890d0e2eac85f70d9a254a34fce3 (patch)
treeb943eb0aab64a1617a889314ccb5dc1f3d315713 /src/backend/tcop/backend_startup.c
parentebdccead1647aec1122810dad498438d9964f35f (diff)
backend libpq void * argument for binary data
Change some backend libpq functions to take void * for binary data instead of char *. This removes the need for numerous casts. Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org
Diffstat (limited to 'src/backend/tcop/backend_startup.c')
-rw-r--r--src/backend/tcop/backend_startup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/tcop/backend_startup.c b/src/backend/tcop/backend_startup.c
index 9ee738eb1e0..c70746fa562 100644
--- a/src/backend/tcop/backend_startup.c
+++ b/src/backend/tcop/backend_startup.c
@@ -480,7 +480,7 @@ ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done)
* sound inefficient, but it's not really, because of buffering in
* pqcomm.c.)
*/
- if (pq_getbytes((char *) &len, 1) == EOF)
+ if (pq_getbytes(&len, 1) == EOF)
{
/*
* If we get no data at all, don't clutter the log with a complaint;