diff options
Diffstat (limited to 'src/bin/pg_basebackup/walmethods.c')
-rw-r--r-- | src/bin/pg_basebackup/walmethods.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/walmethods.c b/src/bin/pg_basebackup/walmethods.c index d9ad596bf06..d4de8ddcf78 100644 --- a/src/bin/pg_basebackup/walmethods.c +++ b/src/bin/pg_basebackup/walmethods.c @@ -61,7 +61,7 @@ typedef struct DirectoryMethodFile #endif } DirectoryMethodFile; -static char * +static const char * dir_getlasterror(void) { /* Directory method always sets errno, so just use strerror */ @@ -406,7 +406,7 @@ static TarMethodData *tar_data = NULL; #define tar_clear_error() tar_data->lasterror[0] = '\0' #define tar_set_error(msg) strlcpy(tar_data->lasterror, msg, sizeof(tar_data->lasterror)) -static char * +static const char * tar_getlasterror(void) { /* |