mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +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:
@@ -154,7 +154,7 @@ uuid_send(PG_FUNCTION_ARGS)
|
||||
StringInfoData buffer;
|
||||
|
||||
pq_begintypsend(&buffer);
|
||||
pq_sendbytes(&buffer, (char *) uuid->data, UUID_LEN);
|
||||
pq_sendbytes(&buffer, uuid->data, UUID_LEN);
|
||||
PG_RETURN_BYTEA_P(pq_endtypsend(&buffer));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user