mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +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:
@@ -685,7 +685,7 @@ varbit_send(PG_FUNCTION_ARGS)
|
||||
|
||||
pq_begintypsend(&buf);
|
||||
pq_sendint32(&buf, VARBITLEN(s));
|
||||
pq_sendbytes(&buf, (char *) VARBITS(s), VARBITBYTES(s));
|
||||
pq_sendbytes(&buf, VARBITS(s), VARBITBYTES(s));
|
||||
PG_RETURN_BYTEA_P(pq_endtypsend(&buf));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user