pgsql: Improve InitShmemAccess() prototype

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve InitShmemAccess() prototype
Date: 2024-11-26 07:52:03
Message-ID: E1tFqMd-003ZyB-KR@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)qgzu6eoqrglb

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2a7b2d97171dd39dca7cefb91008a3c84ec003ba

Modified Files
--------------
src/backend/storage/ipc/shmem.c | 13 ++++---------
src/include/storage/shmem.h | 3 ++-
2 files changed, 6 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-11-26 12:48:32 pgsql: Rename C23 keyword
Previous Message Richard Guo 2024-11-26 02:14:06 pgsql: Fix test case from a8ccf4e93