pgbackrest.git / summary / log / commit / refs

commit    f6f2f2e2a34c01e20bbf6c26e5e8a232a6bd232d
Author:   David Steele <david@pgmasters.net>
Date:     Wed May 25 13:42:49 2022 +0000

    Add missing static keywords.
    
    Add static keyword to local variables where missing.


src/common/stat.c | 2 +- src/common/user.c | 2 +- src/config/config.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/stat.c b/src/common/stat.c index c96f9322f..2d11cf458 100644 --- a/src/common/stat.c +++ b/src/common/stat.c @@ -21,7 +21,7 @@ typedef struct Stat /*********************************************************************************************************************************** Local data ***********************************************************************************************************************************/ -struct +static struct { MemContext *memContext; // Mem context to store data in this struct List *stat; // Cumulative stats diff --git a/src/common/user.c b/src/common/user.c index bdfb151c3..4e6422387 100644 --- a/src/common/user.c +++ b/src/common/user.c @@ -14,7 +14,7 @@ System User/Group Management /*********************************************************************************************************************************** User group info ***********************************************************************************************************************************/ -struct +static struct { MemContext *memContext; // Mem context to store data in this struct diff --git a/src/config/config.c b/src/config/config.c index 9c673b178..6e41d365f 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -15,7 +15,7 @@ Command and Option Configuration /*********************************************************************************************************************************** Data for the currently loaded configuration ***********************************************************************************************************************************/ -Config *configLocal = NULL; +static Config *configLocal = NULL; /**********************************************************************************************************************************/ void [parent: 7ec51e7e6279]