aboutsummaryrefslogtreecommitdiff
path: root/contrib/basebackup_to_shell/basebackup_to_shell.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-12-13 10:39:44 +0100
committerPeter Eisentraut <peter@eisentraut.org>2022-12-13 10:39:44 +0100
commit4cb65e10722164fd12c6b8d010a39ce0f92e71f9 (patch)
tree6252a311b23173f7bf606595093770868b381297 /contrib/basebackup_to_shell/basebackup_to_shell.c
parent369f09e420efe27359b06b69c0265f4aec5c2134 (diff)
downloadpostgresql-4cb65e10722164fd12c6b8d010a39ce0f92e71f9.tar.gz
postgresql-4cb65e10722164fd12c6b8d010a39ce0f92e71f9.zip
basebackup_to_shell: Add some const qualifiers for consistency
Diffstat (limited to 'contrib/basebackup_to_shell/basebackup_to_shell.c')
-rw-r--r--contrib/basebackup_to_shell/basebackup_to_shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/basebackup_to_shell/basebackup_to_shell.c b/contrib/basebackup_to_shell/basebackup_to_shell.c
index e2b18631e05..bdaf67a4c85 100644
--- a/contrib/basebackup_to_shell/basebackup_to_shell.c
+++ b/contrib/basebackup_to_shell/basebackup_to_shell.c
@@ -205,11 +205,11 @@ shell_get_sink(bbsink *next_sink, void *detail_arg)
* making substitutions as appropriate for escape sequences.
*/
static char *
-shell_construct_command(char *base_command, const char *filename,
- char *target_detail)
+shell_construct_command(const char *base_command, const char *filename,
+ const char *target_detail)
{
StringInfoData buf;
- char *c;
+ const char *c;
initStringInfo(&buf);
for (c = base_command; *c != '\0'; ++c)