mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Remove bogus "extern" annotations on function definitions.
While this is not illegal C, project style is to put "extern" only on declarations not definitions. David Rowley Discussion: https://postgr.es/m/CAKJS1f9RKLWXcMBQhvDYhmsMEo+ALuNgA-NE+AX5Uoke9DJ2Xg@mail.gmail.com
This commit is contained in:
@ -60,7 +60,7 @@ shm_toc_create(uint64 magic, void *address, Size nbytes)
|
||||
* Attach to an existing table of contents. If the magic number found at
|
||||
* the target address doesn't match our expectations, return NULL.
|
||||
*/
|
||||
extern shm_toc *
|
||||
shm_toc *
|
||||
shm_toc_attach(uint64 magic, void *address)
|
||||
{
|
||||
shm_toc *toc = (shm_toc *) address;
|
||||
@ -84,7 +84,7 @@ shm_toc_attach(uint64 magic, void *address)
|
||||
* We allocate backwards from the end of the segment, so that the TOC entries
|
||||
* can grow forward from the start of the segment.
|
||||
*/
|
||||
extern void *
|
||||
void *
|
||||
shm_toc_allocate(shm_toc *toc, Size nbytes)
|
||||
{
|
||||
volatile shm_toc *vtoc = toc;
|
||||
@ -127,7 +127,7 @@ shm_toc_allocate(shm_toc *toc, Size nbytes)
|
||||
/*
|
||||
* Return the number of bytes that can still be allocated.
|
||||
*/
|
||||
extern Size
|
||||
Size
|
||||
shm_toc_freespace(shm_toc *toc)
|
||||
{
|
||||
volatile shm_toc *vtoc = toc;
|
||||
|
Reference in New Issue
Block a user