Remove useless extern keywords

An extern keyword on a function definition (not declaration) is
useless and not the normal style.

Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
This commit is contained in:
Peter Eisentraut 2024-07-01 16:40:25 +02:00
parent 3497c87b05
commit 3fb59e789d
4 changed files with 6 additions and 6 deletions

View File

@ -944,7 +944,7 @@ GetFileBackupMethod(IncrementalBackupInfo *ib, const char *path,
* number of blocks. The header is rounded to a multiple of BLCKSZ, but
* only if the file will store some block data.
*/
extern size_t
size_t
GetIncrementalHeaderSize(unsigned num_blocks_required)
{
size_t result;
@ -972,7 +972,7 @@ GetIncrementalHeaderSize(unsigned num_blocks_required)
/*
* Compute the size for an incremental file containing a given number of blocks.
*/
extern size_t
size_t
GetIncrementalFileSize(unsigned num_blocks_required)
{
size_t result;

View File

@ -4020,7 +4020,7 @@ check_debug_io_direct(char **newval, void **extra, GucSource source)
return result;
}
extern void
void
assign_debug_io_direct(const char *newval, void *extra)
{
int *flags = (int *) extra;

View File

@ -61,7 +61,7 @@ const bbstreamer_ops bbstreamer_recovery_injector_ops = {
* zero-length standby.signal file, dropping any file with that name from
* the archive.
*/
extern bbstreamer *
bbstreamer *
bbstreamer_recovery_injector_new(bbstreamer *next,
bool is_recovery_guc_supported,
PQExpBuffer recoveryconfcontents)

View File

@ -89,7 +89,7 @@ const bbstreamer_ops bbstreamer_tar_terminator_ops = {
* specified by 'next' will receive a series of typed chunks, as per the
* conventions described in bbstreamer.h.
*/
extern bbstreamer *
bbstreamer *
bbstreamer_tar_parser_new(bbstreamer *next)
{
bbstreamer_tar_parser *streamer;
@ -352,7 +352,7 @@ bbstreamer_tar_parser_free(bbstreamer *streamer)
* chunks (i.e. not BBSTREAMER_UNKNOWN). See also the comments for
* bbstreamer_tar_parser_content.
*/
extern bbstreamer *
bbstreamer *
bbstreamer_tar_archiver_new(bbstreamer *next)
{
bbstreamer_tar_archiver *streamer;