mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +03:00
Add const to BufFileWrite
Make data buffer argument to BufFileWrite a const pointer and bubble this up to various callers and related APIs. This makes the APIs clearer and more consistent. Discussion: https://www.postgresql.org/message-id/flat/11dda853-bb5b-59ba-a746-e168b1ce4bdb%40enterprisedb.com
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/json.h"
|
||||
|
||||
static void AppendStringToManifest(backup_manifest_info *manifest, char *s);
|
||||
static void AppendStringToManifest(backup_manifest_info *manifest, const char *s);
|
||||
|
||||
/*
|
||||
* Does the user want a backup manifest?
|
||||
@@ -385,7 +385,7 @@ SendBackupManifest(backup_manifest_info *manifest, bbsink *sink)
|
||||
* Append a cstring to the manifest.
|
||||
*/
|
||||
static void
|
||||
AppendStringToManifest(backup_manifest_info *manifest, char *s)
|
||||
AppendStringToManifest(backup_manifest_info *manifest, const char *s)
|
||||
{
|
||||
int len = strlen(s);
|
||||
|
||||
|
Reference in New Issue
Block a user