diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-02-23 14:26:39 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-02-23 14:27:02 +0100 |
commit | 454c182f8542890d0e2eac85f70d9a254a34fce3 (patch) | |
tree | b943eb0aab64a1617a889314ccb5dc1f3d315713 /src/include/libpq/pqformat.h | |
parent | ebdccead1647aec1122810dad498438d9964f35f (diff) | |
download | postgresql-454c182f8542890d0e2eac85f70d9a254a34fce3.tar.gz postgresql-454c182f8542890d0e2eac85f70d9a254a34fce3.zip |
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/include/libpq/pqformat.h')
-rw-r--r-- | src/include/libpq/pqformat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/libpq/pqformat.h b/src/include/libpq/pqformat.h index 6b1a31f8541..9a1534be521 100644 --- a/src/include/libpq/pqformat.h +++ b/src/include/libpq/pqformat.h @@ -200,7 +200,7 @@ extern int64 pq_getmsgint64(StringInfo msg); extern float4 pq_getmsgfloat4(StringInfo msg); extern float8 pq_getmsgfloat8(StringInfo msg); extern const char *pq_getmsgbytes(StringInfo msg, int datalen); -extern void pq_copymsgbytes(StringInfo msg, char *buf, int datalen); +extern void pq_copymsgbytes(StringInfo msg, void *buf, int datalen); extern char *pq_getmsgtext(StringInfo msg, int rawbytes, int *nbytes); extern const char *pq_getmsgstring(StringInfo msg); extern const char *pq_getmsgrawstring(StringInfo msg); |