mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-16 10:20:02 +02:00
713211d89f
These functions accepted const Buffer objects and returned non-const pointers which is definitely not a good idea. Add bufPtrConst() to handle cases where only a const return value is needed and update call sites. Use UNCONSTIFY() in cases where library code out of our control requires a non-const pointer. This includes the already-documented exception in command/backup/pageChecksum and input buffers in the gzCompress and gzDecompress filters. |
||
---|---|---|
.. | ||
backup.c | ||
backup.h | ||
common.c | ||
common.h | ||
file.c | ||
file.h | ||
pageChecksum.c | ||
pageChecksum.h | ||
protocol.c | ||
protocol.h |