mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
Add some const decorations
Discussion: https://www.postgresql.org/message-id/flat/5ac50071-f2ed-4ace-a8fd-b892cffd33eb@www.fastmail.com
This commit is contained in:
@ -20,7 +20,7 @@ static char *escape_quotes(const char *src);
|
|||||||
* return it.
|
* return it.
|
||||||
*/
|
*/
|
||||||
PQExpBuffer
|
PQExpBuffer
|
||||||
GenerateRecoveryConfig(PGconn *pgconn, char *replication_slot)
|
GenerateRecoveryConfig(PGconn *pgconn, const char *replication_slot)
|
||||||
{
|
{
|
||||||
PQconninfoOption *connOptions;
|
PQconninfoOption *connOptions;
|
||||||
PQExpBufferData conninfo_buf;
|
PQExpBufferData conninfo_buf;
|
||||||
@ -102,7 +102,7 @@ GenerateRecoveryConfig(PGconn *pgconn, char *replication_slot)
|
|||||||
* configuration is written to recovery.conf.
|
* configuration is written to recovery.conf.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
WriteRecoveryConfig(PGconn *pgconn, char *target_dir, PQExpBuffer contents)
|
WriteRecoveryConfig(PGconn *pgconn, const char *target_dir, PQExpBuffer contents)
|
||||||
{
|
{
|
||||||
char filename[MAXPGPATH];
|
char filename[MAXPGPATH];
|
||||||
FILE *cf;
|
FILE *cf;
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
#define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
|
#define MINIMUM_VERSION_FOR_RECOVERY_GUC 120000
|
||||||
|
|
||||||
extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn,
|
extern PQExpBuffer GenerateRecoveryConfig(PGconn *pgconn,
|
||||||
char *replication_slot);
|
const char *replication_slot);
|
||||||
extern void WriteRecoveryConfig(PGconn *pgconn, char *target_dir,
|
extern void WriteRecoveryConfig(PGconn *pgconn, const char *target_dir,
|
||||||
PQExpBuffer contents);
|
PQExpBuffer contents);
|
||||||
|
|
||||||
#endif /* RECOVERY_GEN_H */
|
#endif /* RECOVERY_GEN_H */
|
||||||
|
Reference in New Issue
Block a user