git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 369f09e)
basebackup_to_shell: Add some const qualifiers for consistency
2022年12月13日 09:39:44 +0000 (10:39 +0100)
2022年12月13日 09:39:44 +0000 (10:39 +0100)

diff --git a/contrib/basebackup_to_shell/basebackup_to_shell.c b/contrib/basebackup_to_shell/basebackup_to_shell.c
index e2b18631e053b97a67f3339c4408bc2e830536c9..bdaf67a4c8561ca39febf4c12aadc189ca801f53 100644 (file)
--- 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)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /