Improve InitShmemAccess() prototype
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 26 Nov 2024 07:25:23 +0000 (08:25 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 26 Nov 2024 07:46:22 +0000 (08:46 +0100)
commit2a7b2d97171dd39dca7cefb91008a3c84ec003ba
treeef9063a432a3c3ad6b1e436d1ebe6ff7e8e0cd9e
parente15e56713702c45402d2728f3d7d68df96b2fbbe
Improve InitShmemAccess() prototype

The code comment said, 'the argument should be declared "PGShmemHeader
*seghdr", but we use void to avoid having to include ipc.h in
shmem.h.'  We can achieve the original goal with a struct forward
declaration.  (ipc.h was also not the correct header file.)

Discussion: https://www.postgresql.org/message-id/flat/cnthxg2eekacrejyeonuhiaezc7vd7o2uowlsbenxqfkjwgvwj@qgzu6eoqrglb
src/backend/storage/ipc/shmem.c
src/include/storage/shmem.h