Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3fb59e7

Browse files
committed
Remove useless extern keywords
An extern keyword on a function definition (not declaration) isuseless and not the normal style.Discussion:https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
1 parent3497c87 commit3fb59e7

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-
externsize_t
947+
size_t
948948
GetIncrementalHeaderSize(unsignednum_blocks_required)
949949
{
950950
size_tresult;
@@ -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-
externsize_t
975+
size_t
976976
GetIncrementalFileSize(unsignednum_blocks_required)
977977
{
978978
size_tresult;

‎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
returnresult;
40214021
}
40224022

4023-
externvoid
4023+
void
40244024
assign_debug_io_direct(constchar*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-
externbbstreamer*
64+
bbstreamer*
6565
bbstreamer_recovery_injector_new(bbstreamer*next,
6666
boolis_recovery_guc_supported,
6767
PQExpBufferrecoveryconfcontents)

‎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-
externbbstreamer*
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-
externbbstreamer*
355+
bbstreamer*
356356
bbstreamer_tar_archiver_new(bbstreamer*next)
357357
{
358358
bbstreamer_tar_archiver*streamer;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp