Skip to content

Commit 3fb59e7

Browse files
committed
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
1 parent 3497c87 commit 3fb59e7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/backend/backup/basebackup_incremental.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ GetFileBackupMethod(IncrementalBackupInfo *ib, const char *path,
944944
* number of blocks. The header is rounded to a multiple of BLCKSZ, but
945945
* only if the file will store some block data.
946946
*/
947-
extern size_t
947+
size_t
948948
GetIncrementalHeaderSize(unsigned num_blocks_required)
949949
{
950950
size_t result;
@@ -972,7 +972,7 @@ GetIncrementalHeaderSize(unsigned num_blocks_required)
972972
/*
973973
* Compute the size for an incremental file containing a given number of blocks.
974974
*/
975-
extern size_t
975+
size_t
976976
GetIncrementalFileSize(unsigned num_blocks_required)
977977
{
978978
size_t result;

src/backend/storage/file/fd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4020,7 +4020,7 @@ check_debug_io_direct(char **newval, void **extra, GucSource source)
40204020
return result;
40214021
}
40224022

4023-
extern void
4023+
void
40244024
assign_debug_io_direct(const char *newval, void *extra)
40254025
{
40264026
int *flags = (int *) extra;

src/bin/pg_basebackup/bbstreamer_inject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const bbstreamer_ops bbstreamer_recovery_injector_ops = {
6161
* zero-length standby.signal file, dropping any file with that name from
6262
* the archive.
6363
*/
64-
extern bbstreamer *
64+
bbstreamer *
6565
bbstreamer_recovery_injector_new(bbstreamer *next,
6666
bool is_recovery_guc_supported,
6767
PQExpBuffer recoveryconfcontents)

src/bin/pg_basebackup/bbstreamer_tar.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const bbstreamer_ops bbstreamer_tar_terminator_ops = {
8989
* specified by 'next' will receive a series of typed chunks, as per the
9090
* conventions described in bbstreamer.h.
9191
*/
92-
extern bbstreamer *
92+
bbstreamer *
9393
bbstreamer_tar_parser_new(bbstreamer *next)
9494
{
9595
bbstreamer_tar_parser *streamer;
@@ -352,7 +352,7 @@ bbstreamer_tar_parser_free(bbstreamer *streamer)
352352
* chunks (i.e. not BBSTREAMER_UNKNOWN). See also the comments for
353353
* bbstreamer_tar_parser_content.
354354
*/
355-
extern bbstreamer *
355+
bbstreamer *
356356
bbstreamer_tar_archiver_new(bbstreamer *next)
357357
{
358358
bbstreamer_tar_archiver *streamer;

0 commit comments

Comments
 (0)