Change argument of appendBinaryStringInfo from char * to void *
Peter Eisentraut <peter@eisentraut.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonpath.c | modified | +9 −9 |
| src/backend/utils/adt/xid8funcs.c | modified | +2 −2 |
| src/common/stringinfo.c | modified | +2 −2 |
| src/include/lib/stringinfo.h | modified | +2 −2 |
Discussion
- appendBinaryStringInfo stuff 23 messages · 2022-12-19 → 2023-02-14