summaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/worker.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-12-03 10:54:37 -0600
committerNathan Bossart <nathan@postgresql.org>2025-12-03 10:54:37 -0600
commit9b05e2ec08a3d174accb2a9e1c59e52e94799acc (patch)
tree5df364b27679992fd5e38f817d6f010996e8ee46 /src/backend/replication/logical/worker.c
parentbe25c77677285d3b1365bd19280b27771a1efbce (diff)
Use "foo(void)" for definitions of functions with no parameters.
Standard practice in PostgreSQL is to use "foo(void)" instead of "foo()", as the latter looks like an "old-style" function declaration. Similar changes were made in commits cdf4b9aff2, 0e72b9d440, 7069dbcc31, f1283ed6cc, 7b66e2c086, e95126cf04, and 9f7c527af3. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com> Discussion: https://postgr.es/m/aTBObQPg%2Bps5I7vl%40ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src/backend/replication/logical/worker.c')
-rw-r--r--src/backend/replication/logical/worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c
index 93970c6af29..a46f8e0644b 100644
--- a/src/backend/replication/logical/worker.c
+++ b/src/backend/replication/logical/worker.c
@@ -5561,7 +5561,7 @@ set_stream_options(WalRcvStreamOptions *options,
* Cleanup the memory for subxacts and reset the related variables.
*/
static inline void
-cleanup_subxact_info()
+cleanup_subxact_info(void)
{
if (subxact_data.subxacts)
pfree(subxact_data.subxacts);
@@ -5621,7 +5621,7 @@ start_apply(XLogRecPtr origin_startpos)
* It sets up replication origin, streaming options and then starts streaming.
*/
static void
-run_apply_worker()
+run_apply_worker(void)
{
char originname[NAMEDATALEN];
XLogRecPtr origin_startpos = InvalidXLogRecPtr;