1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-26 01:22:12 +03:00

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 * number of blocks. The header is rounded to a multiple of BLCKSZ, but
* only if the file will store some block data. * only if the file will store some block data.
*/ */
extern size_t size_t
GetIncrementalHeaderSize(unsigned num_blocks_required) GetIncrementalHeaderSize(unsigned num_blocks_required)
{ {
size_t result; 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. * Compute the size for an incremental file containing a given number of blocks.
*/ */
extern size_t size_t
GetIncrementalFileSize(unsigned num_blocks_required) GetIncrementalFileSize(unsigned num_blocks_required)
{ {
size_t result; size_t result;

View File

@ -4020,7 +4020,7 @@ check_debug_io_direct(char **newval, void **extra, GucSource source)
return result; return result;
} }
extern void void
assign_debug_io_direct(const char *newval, void *extra) assign_debug_io_direct(const char *newval, void *extra)
{ {
int *flags = (int *) 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 * zero-length standby.signal file, dropping any file with that name from
* the archive. * the archive.
*/ */
extern bbstreamer * bbstreamer *
bbstreamer_recovery_injector_new(bbstreamer *next, bbstreamer_recovery_injector_new(bbstreamer *next,
bool is_recovery_guc_supported, bool is_recovery_guc_supported,
PQExpBuffer recoveryconfcontents) 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 * specified by 'next' will receive a series of typed chunks, as per the
* conventions described in bbstreamer.h. * conventions described in bbstreamer.h.
*/ */
extern bbstreamer * bbstreamer *
bbstreamer_tar_parser_new(bbstreamer *next) bbstreamer_tar_parser_new(bbstreamer *next)
{ {
bbstreamer_tar_parser *streamer; 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 * chunks (i.e. not BBSTREAMER_UNKNOWN). See also the comments for
* bbstreamer_tar_parser_content. * bbstreamer_tar_parser_content.
*/ */
extern bbstreamer * bbstreamer *
bbstreamer_tar_archiver_new(bbstreamer *next) bbstreamer_tar_archiver_new(bbstreamer *next)
{ {
bbstreamer_tar_archiver *streamer; bbstreamer_tar_archiver *streamer;