pgsql: Change argument of appendBinaryStringInfo from char * to void *

Started by Peter Eisentrautover 3 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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: /messages/by-id/a0086cfc-ff0f-2827-20fe-52b591d2666c@enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1f605b82ba66ece8b421b10d41094dd2e3c0c48b

Modified Files
--------------
src/backend/utils/adt/jsonpath.c | 18 +++++++++---------
src/backend/utils/adt/xid8funcs.c | 4 ++--
src/common/stringinfo.c | 4 ++--
src/include/lib/stringinfo.h | 4 ++--
4 files changed, 15 insertions(+), 15 deletions(-)