pgsql: Constify the arguments of copydir.h functions - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Constify the arguments of copydir.h functions
Date
Msg-id E1pHvxI-004CmW-Gf@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Doc: fix a few oddly-spelled SGML ID attributes.
Next
From: Michael Paquier
Date:
Subject: pgsql: Refactor code for restoring files via shell commands