diff --git a/src/dir.c b/src/dir.c index 1573f688..0b724036 100644 --- a/src/dir.c +++ b/src/dir.c @@ -28,7 +28,7 @@ * start so they are not included in backups. The directories themselves are * kept and included as empty to preserve access permissions. */ -const char *pgdata_exclude_dir[] = +static const char *pgdata_exclude_dir[] = { PG_XLOG_DIR, /* diff --git a/src/pg_probackup.c b/src/pg_probackup.c index dd2ac97e..37d87230 100644 --- a/src/pg_probackup.c +++ b/src/pg_probackup.c @@ -104,7 +104,7 @@ bool force = false; bool dry_run = false; static char *delete_status = NULL; /* compression options */ -bool compress_shortcut = false; +static bool compress_shortcut = false; /* other options */ char *instance_name; diff --git a/src/pg_probackup.h b/src/pg_probackup.h index 2e72fe86..18bf87bb 100644 --- a/src/pg_probackup.h +++ b/src/pg_probackup.h @@ -672,16 +672,6 @@ typedef struct BackupPageHeader2 #define PageIsTruncated -2 #define PageIsCorrupted -3 /* used by checkdb */ - -/* - * return pointer that exceeds the length of prefix from character string. - * ex. str="/xxx/yyy/zzz", prefix="/xxx/yyy", return="zzz". - * - * Deprecated. Do not use this in new code. - */ -#define GetRelativePath(str, prefix) \ - ((strlen(str) <= strlen(prefix)) ? "" : str + strlen(prefix) + 1) - /* * Return timeline, xlog ID and record offset from an LSN of the type * 0/B000188, usual result from pg_stop_backup() and friends. @@ -789,9 +779,6 @@ extern bool delete_expired; extern bool merge_expired; extern bool dry_run; -/* compression options */ -extern bool compress_shortcut; - /* other options */ extern char *instance_name; @@ -808,10 +795,6 @@ extern pgBackup current; /* argv of the process */ extern char** commands_args; -/* in dir.c */ -/* exclude directory list for $PGDATA file listing */ -extern const char *pgdata_exclude_dir[]; - /* in backup.c */ extern int do_backup(pgSetBackupParams *set_backup_params, bool no_validate, bool no_sync, bool backup_logs);