pgsql: Constify the arguments of copydir.h functions

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Constify the arguments of copydir.h functions
Дата
Msg-id E1pHvxI-004CmW-Gf@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2f31f405e1fa561db27e8dc6f7f3cb3dbd8c0c4f

Modified Files
--------------
contrib/basic_archive/basic_archive.c | 2 +-
src/backend/storage/file/copydir.c    | 4 ++--
src/include/storage/copydir.h         | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: fix a few oddly-spelled SGML ID attributes.
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Refactor code for restoring files via shell commands