mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
removed not needed arguments to avoid compiler warnings
This commit is contained in:
17
repmgrd.c
17
repmgrd.c
@@ -117,8 +117,8 @@ t_configuration_options config = T_CONFIGURATION_OPTIONS_INITIALIZER;
|
|||||||
|
|
||||||
static void help(const char* progname);
|
static void help(const char* progname);
|
||||||
static void usage(void);
|
static void usage(void);
|
||||||
static void checkClusterConfiguration(PGconn *conn, PGconn *primary);
|
static void checkClusterConfiguration(PGconn *conn);
|
||||||
static void checkNodeConfiguration(char *conninfo);
|
static void checkNodeConfiguration(void);
|
||||||
|
|
||||||
static void StandbyMonitor(void);
|
static void StandbyMonitor(void);
|
||||||
static void WitnessMonitor(void);
|
static void WitnessMonitor(void);
|
||||||
@@ -309,8 +309,8 @@ main(int argc, char **argv)
|
|||||||
strncpy(primary_options.conninfo, local_options.conninfo, MAXLEN);
|
strncpy(primary_options.conninfo, local_options.conninfo, MAXLEN);
|
||||||
primaryConn = myLocalConn;
|
primaryConn = myLocalConn;
|
||||||
|
|
||||||
checkClusterConfiguration(myLocalConn, primaryConn);
|
checkClusterConfiguration(myLocalConn);
|
||||||
checkNodeConfiguration(local_options.conninfo);
|
checkNodeConfiguration();
|
||||||
|
|
||||||
if (reload_configuration(config_file, &local_options))
|
if (reload_configuration(config_file, &local_options))
|
||||||
{
|
{
|
||||||
@@ -380,8 +380,8 @@ main(int argc, char **argv)
|
|||||||
terminate(ERR_BAD_CONFIG);
|
terminate(ERR_BAD_CONFIG);
|
||||||
}
|
}
|
||||||
|
|
||||||
checkClusterConfiguration(myLocalConn, primaryConn);
|
checkClusterConfiguration(myLocalConn);
|
||||||
checkNodeConfiguration(local_options.conninfo);
|
checkNodeConfiguration();
|
||||||
|
|
||||||
if (reload_configuration(config_file, &local_options))
|
if (reload_configuration(config_file, &local_options))
|
||||||
{
|
{
|
||||||
@@ -708,7 +708,6 @@ do_failover(void)
|
|||||||
int ready_nodes = 0;
|
int ready_nodes = 0;
|
||||||
|
|
||||||
bool find_best = false;
|
bool find_best = false;
|
||||||
bool witness = false;
|
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int r;
|
int r;
|
||||||
@@ -1102,7 +1101,7 @@ CheckConnection(PGconn *conn, const char *type)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
checkClusterConfiguration(PGconn *conn, PGconn *primary)
|
checkClusterConfiguration(PGconn *conn)
|
||||||
{
|
{
|
||||||
PGresult *res;
|
PGresult *res;
|
||||||
|
|
||||||
@@ -1137,7 +1136,7 @@ checkClusterConfiguration(PGconn *conn, PGconn *primary)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
checkNodeConfiguration(char *conninfo)
|
checkNodeConfiguration(void)
|
||||||
{
|
{
|
||||||
PGresult *res;
|
PGresult *res;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user