pgbackrest.git / summary / log / commit / refs

commit    416fadd60cc0401e5e730867d98ae59ff54f8dcd
Author:   David Steele <david@pgmasters.net>
Date:     Fri Dec 30 07:48:31 2022 +0000

    Mark functions not used externally as static.
    
    Also cleanup a stray linefeed.


src/command/backup/backup.c | 2 +- src/command/repo/get.c | 2 +- src/command/repo/put.c | 2 +- src/command/verify/verify.c | 2 +- src/common/io/filter/buffer.c | 2 +- src/common/io/filter/size.c | 2 +- src/common/io/socket/session.h | 1 - src/storage/posix/storage.c | 6 +++--- src/storage/posix/storage.intern.h | 8 -------- 9 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/command/backup/backup.c b/src/command/backup/backup.c index 80f662668..099bfaa1e 100644 --- a/src/command/backup/backup.c +++ b/src/command/backup/backup.c @@ -1441,7 +1441,7 @@ typedef struct BackupJobData } BackupJobData; // Identify files that must be copied from the primary -bool +static bool backupProcessFilePrimary(RegExp *const standbyExp, const String *const name) { FUNCTION_TEST_BEGIN(); diff --git a/src/command/repo/get.c b/src/command/repo/get.c index 537b9dc07..0abcedbce 100644 --- a/src/command/repo/get.c +++ b/src/command/repo/get.c @@ -21,7 +21,7 @@ Repository Get Command /*********************************************************************************************************************************** Write source file to destination IO ***********************************************************************************************************************************/ -int +static int storageGetProcess(IoWrite *destination) { FUNCTION_LOG_BEGIN(logLevelDebug) diff --git a/src/command/repo/put.c b/src/command/repo/put.c index 03953bbfc..44fa7ddc6 100644 --- a/src/command/repo/put.c +++ b/src/command/repo/put.c @@ -18,7 +18,7 @@ Repository Put Command /*********************************************************************************************************************************** Write source IO to destination file ***********************************************************************************************************************************/ -void +static void storagePutProcess(IoRead *source) { FUNCTION_LOG_BEGIN(logLevelDebug) diff --git a/src/command/verify/verify.c b/src/command/verify/verify.c index e4d16659a..a25111ac4 100644 --- a/src/command/verify/verify.c +++ b/src/command/verify/verify.c @@ -488,7 +488,7 @@ verifyManifestFile( /*********************************************************************************************************************************** Check the history in the info files ***********************************************************************************************************************************/ -void +static void verifyPgHistory(const InfoPg *archiveInfoPg, const InfoPg *backupInfoPg) { FUNCTION_TEST_BEGIN(); diff --git a/src/common/io/filter/buffer.c b/src/common/io/filter/buffer.c index 4ef440760..69390f0e2 100644 --- a/src/common/io/filter/buffer.c +++ b/src/common/io/filter/buffer.c @@ -28,7 +28,7 @@ typedef struct IoBuffer /*********************************************************************************************************************************** Macros for function logging ***********************************************************************************************************************************/ -String * +static String * ioBufferToLog(const IoBuffer *this) { return strNewFmt("{inputSame: %s, inputPos: %zu}", cvtBoolToConstZ(this->inputSame), this->inputPos); diff --git a/src/common/io/filter/size.c b/src/common/io/filter/size.c index 7d5b89b91..5df30cc4e 100644 --- a/src/common/io/filter/size.c +++ b/src/common/io/filter/size.c @@ -23,7 +23,7 @@ typedef struct IoSize /*********************************************************************************************************************************** Macros for function logging ***********************************************************************************************************************************/ -String * +static String * ioSizeToLog(const IoSize *this) { return strNewFmt("{size: %" PRIu64 "}", this->size); diff --git a/src/common/io/socket/session.h b/src/common/io/socket/session.h index 94192ecba..30f9a337c 100644 --- a/src/common/io/socket/session.h +++ b/src/common/io/socket/session.h @@ -14,5 +14,4 @@ Constructors ***********************************************************************************************************************************/ IoSession *sckSessionNew(IoSessionRole role, int fd, const String *host, unsigned int port, TimeMSec timeout); - #endif diff --git a/src/storage/posix/storage.c b/src/storage/posix/storage.c index 8e006ede3..380b3e0f5 100644 --- a/src/storage/posix/storage.c +++ b/src/storage/posix/storage.c @@ -113,7 +113,7 @@ storagePosixInfo(THIS_VOID, const String *file, StorageInfoLevel level, StorageI } /**********************************************************************************************************************************/ -void +static void storagePosixLinkCreate( THIS_VOID, const String *const target, const String *const linkPath, const StorageInterfaceLinkCreateParam param) { @@ -388,7 +388,7 @@ storagePosixNewWrite(THIS_VOID, const String *file, StorageInterfaceNewWritePara } /**********************************************************************************************************************************/ -void +static void storagePosixPathCreate( THIS_VOID, const String *const path, const bool errorOnExists, const bool noParentCreate, const mode_t mode, const StorageInterfacePathCreateParam param) @@ -498,7 +498,7 @@ storagePosixPathRemove(THIS_VOID, const String *path, bool recurse, StorageInter } /**********************************************************************************************************************************/ -void +static void storagePosixPathSync(THIS_VOID, const String *path, StorageInterfacePathSyncParam param) { THIS(StoragePosix); diff --git a/src/storage/posix/storage.intern.h b/src/storage/posix/storage.intern.h index fde1e969e..b06bd08b4 100644 --- a/src/storage/posix/storage.intern.h +++ b/src/storage/posix/storage.intern.h @@ -14,14 +14,6 @@ Storage *storagePosixNewInternal( StringId type, const String *path, mode_t modeFile, mode_t modePath, bool write, StoragePathExpressionCallback pathExpressionFunction, bool pathSync); -/*********************************************************************************************************************************** -Functions -***********************************************************************************************************************************/ -void storagePosixLinkCreate(THIS_VOID, const String *target, const String *linkPath, StorageInterfaceLinkCreateParam param); -void storagePosixPathCreate( - THIS_VOID, const String *path, bool errorOnExists, bool noParentCreate, mode_t mode, StorageInterfacePathCreateParam param); -void storagePosixPathSync(THIS_VOID, const String *path, StorageInterfacePathSyncParam param); - /*********************************************************************************************************************************** Macros for function logging ***********************************************************************************************************************************/ [parent: b9be4fa54039]