Constify the arguments of copydir.h functions
Michael Paquier <michael@paquier.xyz>
Constify the arguments of copydir.h functions This makes sure that the internal logic of these functions does not attempt to change the value of the arguments constified, and it removes one unconstify() in basic_archive.c. Author: Nathan Bossart Reviewed-by: Andrew Dunstan, Peter Eisentraut Discussion: https://postgr.es/m/20230114231126.GA2580330@nathanxps13
Files
| Path | Change | +/− |
|---|---|---|
| contrib/basic_archive/basic_archive.c | modified | +1 −1 |
| src/backend/storage/file/copydir.c | modified | +2 −2 |
| src/include/storage/copydir.h | modified | +2 −2 |
Discussion
- constify arguments of copy_file() and copydir() 8 messages · 2023-01-14 → 2023-01-18