Improve InitShmemAccess() prototype

Peter Eisentraut <peter@eisentraut.org>

Commit: 2a7b2d97171dd39dca7cefb91008a3c84ec003ba
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-11-26T07:46:22Z
Releases: 18.0
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

Files

PathChange+/−
src/backend/storage/ipc/shmem.c modified +4 −9
src/include/storage/shmem.h modified +2 −1

Discussion