1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-21 00:42:43 +03:00

Change argument type of pq_sendbytes from char * to void *

This is a follow-up to 1f605b82ba.  It
allows getting rid of further casts at call sites.

Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Discussion: https://www.postgresql.org/message-id/783a4edb-84f9-6df2-7470-2ef5ccc6607a@enterprisedb.com
This commit is contained in:
Peter Eisentraut
2023-02-14 13:32:19 +01:00
parent a8a44828a2
commit 3b12e68a5c
5 changed files with 9 additions and 10 deletions

View File

@@ -123,7 +123,7 @@ pq_beginmessage_reuse(StringInfo buf, char msgtype)
* --------------------------------
*/
void
pq_sendbytes(StringInfo buf, const char *data, int datalen)
pq_sendbytes(StringInfo buf, const void *data, int datalen)
{
/* use variant that maintains a trailing null-byte, out of caution */
appendBinaryStringInfo(buf, data, datalen);