summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-02-14 13:32:19 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-02-14 13:32:19 +0100
commit3b12e68a5c4609deb9fc69607e0aec072700c0a9 (patch)
tree3f2157d080d4689f6e3dc3917484971c8fc90f29 /src/include
parenta8a44828a2e15c95a15549063205b779f7055f1c (diff)
Change argument type of pq_sendbytes from char * to void *
This is a follow-up to 1f605b82ba66ece8b421b10d41094dd2e3c0c48b. 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
Diffstat (limited to 'src/include')
-rw-r--r--src/include/libpq/pqformat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/libpq/pqformat.h b/src/include/libpq/pqformat.h
index c5644c0061a..0d2f958af33 100644
--- a/src/include/libpq/pqformat.h
+++ b/src/include/libpq/pqformat.h
@@ -22,7 +22,7 @@ extern void pq_beginmessage_reuse(StringInfo buf, char msgtype);
extern void pq_endmessage(StringInfo buf);
extern void pq_endmessage_reuse(StringInfo buf);
-extern void pq_sendbytes(StringInfo buf, const char *data, int datalen);
+extern void pq_sendbytes(StringInfo buf, const void *data, int datalen);
extern void pq_sendcountedtext(StringInfo buf, const char *str, int slen,
bool countincludesself);
extern void pq_sendtext(StringInfo buf, const char *str, int slen);