summaryrefslogtreecommitdiff
blob: c5450291dbb46d8e3fb3f9be36220e3af3c08d3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- a/repmgr-action-cluster.c
+++ b/repmgr-action-cluster.c
@@ -26,6 +26,7 @@
 
 #define SHOW_HEADER_COUNT 9
 
+extern t_conninfo_param_list source_conninfo;
 typedef enum
 {
 	SHOW_ID = 0,
--- a/repmgr-action-node.c
+++ b/repmgr-action-node.c
@@ -32,6 +32,7 @@
 #include "repmgr-action-node.h"
 #include "repmgr-action-standby.h"
 
+extern t_conninfo_param_list source_conninfo;
 static bool copy_file(const char *src_file, const char *dest_file);
 static void format_archive_dir(PQExpBufferData *archive_dir);
 static t_server_action parse_server_action(const char *action);
--- a/repmgr-action-service.c
+++ b/repmgr-action-service.c
@@ -26,6 +26,7 @@
 #include "repmgr-client-global.h"
 #include "repmgr-action-service.h"
 
+extern t_conninfo_param_list source_conninfo;
 
 /*
  * Possibly also show:
--- a/repmgr-action-witness.c
+++ b/repmgr-action-witness.c
@@ -28,6 +28,7 @@
 #include "repmgr-client-global.h"
 #include "repmgr-action-witness.h"
 
+extern t_conninfo_param_list source_conninfo;
 static char		repmgr_user[MAXLEN];
 static char		repmgr_db[MAXLEN];
 
--- a/repmgr-client-global.h
+++ b/repmgr-client-global.h
@@ -236,7 +236,7 @@ typedef struct ColHeader
 extern t_runtime_options runtime_options;
 extern t_configuration_options config_file_options;
 
-t_conninfo_param_list source_conninfo;
+extern t_conninfo_param_list source_conninfo;
 
 
 extern bool config_file_required;