Skip to content

Commit 48018f1

Browse files
committed
1 parent 05c3980 commit 48018f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/fe_utils/recovery_gen.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static char *escape_quotes(const char *src);
2020
* return it.
2121
*/
2222
PQExpBuffer
23-
GenerateRecoveryConfig(PGconn *pgconn, char *replication_slot)
23+
GenerateRecoveryConfig(PGconn *pgconn, const char *replication_slot)
2424
{
2525
PQconninfoOption *connOptions;
2626
PQExpBufferData conninfo_buf;
@@ -102,7 +102,7 @@ GenerateRecoveryConfig(PGconn *pgconn, char *replication_slot)
102102
* configuration is written to recovery.conf.
103103
*/
104104
void
105-
WriteRecoveryConfig(PGconn *pgconn, char *target_dir, PQExpBuffer contents)
105+
WriteRecoveryConfig(PGconn *pgconn, const char *target_dir, PQExpBuffer contents)
106106
{
107107
char filename[MAXPGPATH];
108108
FILE *cf;

src/include/fe_utils/recovery_gen.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
2222

2323
extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn,
24-
char *replication_slot);
25-
extern void WriteRecoveryConfig(PGconn *pgconn, char *target_dir,
24+
const char *replication_slot);
25+
extern void WriteRecoveryConfig(PGconn *pgconn, const char *target_dir,
2626
PQExpBuffer contents);
2727

2828
#endif /* RECOVERY_GEN_H */

0 commit comments

Comments
 (0)