Add some const decorations

This commit is contained in:
Peter Eisentraut 2020-08-08 07:31:52 +02:00
parent 7259736a6e
commit a13421c96c
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ static void stream_message_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *tx
static void stream_truncate_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn, static void stream_truncate_cb_wrapper(ReorderBuffer *cache, ReorderBufferTXN *txn,
int nrelations, Relation relations[], ReorderBufferChange *change); int nrelations, Relation relations[], ReorderBufferChange *change);
static void LoadOutputPlugin(OutputPluginCallbacks *callbacks, char *plugin); static void LoadOutputPlugin(OutputPluginCallbacks *callbacks, const char *plugin);
/* /*
* Make sure the current settings & environment are capable of doing logical * Make sure the current settings & environment are capable of doing logical
@ -277,7 +277,7 @@ StartupDecodingContext(List *output_plugin_options,
* startup function. * startup function.
*/ */
LogicalDecodingContext * LogicalDecodingContext *
CreateInitDecodingContext(char *plugin, CreateInitDecodingContext(const char *plugin,
List *output_plugin_options, List *output_plugin_options,
bool need_full_snapshot, bool need_full_snapshot,
XLogRecPtr restart_lsn, XLogRecPtr restart_lsn,
@ -612,7 +612,7 @@ OutputPluginUpdateProgress(struct LogicalDecodingContext *ctx)
* that it provides the required callbacks. * that it provides the required callbacks.
*/ */
static void static void
LoadOutputPlugin(OutputPluginCallbacks *callbacks, char *plugin) LoadOutputPlugin(OutputPluginCallbacks *callbacks, const char *plugin)
{ {
LogicalOutputPluginInit plugin_init; LogicalOutputPluginInit plugin_init;

View File

@ -96,7 +96,7 @@ typedef struct LogicalDecodingContext
extern void CheckLogicalDecodingRequirements(void); extern void CheckLogicalDecodingRequirements(void);
extern LogicalDecodingContext *CreateInitDecodingContext(char *plugin, extern LogicalDecodingContext *CreateInitDecodingContext(const char *plugin,
List *output_plugin_options, List *output_plugin_options,
bool need_full_snapshot, bool need_full_snapshot,
XLogRecPtr restart_lsn, XLogRecPtr restart_lsn,