mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user