Skip to content

Commit 78b3190

Browse files
nathan-bossartCommitfest Bot
authored andcommitted
use NULL instead of 0 for pointer arguments
1 parent 4396490 commit 78b3190

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/backend/replication/logical/launcher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ logicalrep_launcher_attach_dshmem(void)
10161016
last_start_times_dsa = dsa_attach(LogicalRepCtx->last_start_dsa);
10171017
dsa_pin_mapping(last_start_times_dsa);
10181018
last_start_times = dshash_attach(last_start_times_dsa, &dsh_params,
1019-
LogicalRepCtx->last_start_dsh, 0);
1019+
LogicalRepCtx->last_start_dsh, NULL);
10201020
}
10211021

10221022
MemoryContextSwitchTo(oldcontext);

src/backend/utils/activity/pgstat_shmem.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ StatsShmemInit(void)
183183
p += MAXALIGN(pgstat_dsa_init_size());
184184
dsa = dsa_create_in_place(ctl->raw_dsa_area,
185185
pgstat_dsa_init_size(),
186-
LWTRANCHE_PGSTATS_DSA, 0);
186+
LWTRANCHE_PGSTATS_DSA, NULL);
187187
dsa_pin(dsa);
188188

189189
/*
@@ -255,7 +255,8 @@ pgstat_attach_shmem(void)
255255
dsa_pin_mapping(pgStatLocal.dsa);
256256

257257
pgStatLocal.shared_hash = dshash_attach(pgStatLocal.dsa, &dsh_params,
258-
pgStatLocal.shmem->hash_handle, 0);
258+
pgStatLocal.shmem->hash_handle,
259+
NULL);
259260

260261
MemoryContextSwitchTo(oldcontext);
261262
}

0 commit comments

Comments
 (0)