mirror of
https://github.com/postgres/postgres.git
synced 2025-11-28 11:44:57 +03:00
Add some const decorations to prototypes
Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
This commit is contained in:
@@ -327,7 +327,7 @@ not_available:
|
||||
* This is currently used for recovery_end_command and archive_cleanup_command.
|
||||
*/
|
||||
void
|
||||
ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal)
|
||||
ExecuteRecoveryCommand(const char *command, const char *commandName, bool failOnSignal)
|
||||
{
|
||||
char xlogRecoveryCmd[MAXPGPATH];
|
||||
char lastRestartPointFname[MAXPGPATH];
|
||||
@@ -425,7 +425,7 @@ ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal)
|
||||
* in pg_wal (xlogfname), replacing any existing file with the same name.
|
||||
*/
|
||||
void
|
||||
KeepFileRestoredFromArchive(char *path, char *xlogfname)
|
||||
KeepFileRestoredFromArchive(const char *path, const char *xlogfname)
|
||||
{
|
||||
char xlogfpath[MAXPGPATH];
|
||||
bool reload = false;
|
||||
|
||||
Reference in New Issue
Block a user