Change argument of appendBinaryStringInfo from char * to void *
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 30 Dec 2022 09:59:25 +0000 (10:59 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 30 Dec 2022 10:05:09 +0000 (11:05 +0100)
commit1f605b82ba66ece8b421b10d41094dd2e3c0c48b
tree0274b67eba350574344af68f4b4bbaf3f7c5ba1e
parent33a33f0ba4d70a704e2d6bb8ee85f29fe18cead9
Change argument of appendBinaryStringInfo from char * to void *

There is some code that uses this function to assemble some kind of
packed binary layout, which requires a bunch of casts because of this.
Functions taking binary data plus length should take void * instead,
like memcpy() for example.

Discussion: https://www.postgresql.org/message-id/flat/a0086cfc-ff0f-2827-20fe-52b591d2666c%40enterprisedb.com
src/backend/utils/adt/jsonpath.c
src/backend/utils/adt/xid8funcs.c
src/common/stringinfo.c
src/include/lib/stringinfo.h