mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 08:56:29 +00:00
help() -> do_help()
For consistency and easier location of the function body.
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -113,10 +113,10 @@ static void do_witness_create(void);
|
|||||||
static void do_cluster_show(void);
|
static void do_cluster_show(void);
|
||||||
static void do_cluster_cleanup(void);
|
static void do_cluster_cleanup(void);
|
||||||
static void do_check_upstream_config(void);
|
static void do_check_upstream_config(void);
|
||||||
|
static void do_help(void);
|
||||||
|
|
||||||
static void exit_with_errors(void);
|
static void exit_with_errors(void);
|
||||||
static void print_error_list(ErrorList *error_list, int log_level);
|
static void print_error_list(ErrorList *error_list, int log_level);
|
||||||
static void help(void);
|
|
||||||
|
|
||||||
static bool remote_command(const char *host, const char *user, const char *command, PQExpBufferData *outputbuf);
|
static bool remote_command(const char *host, const char *user, const char *command, PQExpBufferData *outputbuf);
|
||||||
static void format_db_cli_params(const char *conninfo, char *output);
|
static void format_db_cli_params(const char *conninfo, char *output);
|
||||||
@@ -210,7 +210,7 @@ main(int argc, char **argv)
|
|||||||
switch (c)
|
switch (c)
|
||||||
{
|
{
|
||||||
case '?':
|
case '?':
|
||||||
help();
|
do_help();
|
||||||
exit(SUCCESS);
|
exit(SUCCESS);
|
||||||
case 'V':
|
case 'V':
|
||||||
printf("%s %s (PostgreSQL %s)\n", progname(), REPMGR_VERSION, PG_VERSION);
|
printf("%s %s (PostgreSQL %s)\n", progname(), REPMGR_VERSION, PG_VERSION);
|
||||||
@@ -3686,7 +3686,7 @@ do_witness_create(void)
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
help(void)
|
do_help(void)
|
||||||
{
|
{
|
||||||
printf(_("%s: replication management tool for PostgreSQL\n"), progname());
|
printf(_("%s: replication management tool for PostgreSQL\n"), progname());
|
||||||
printf(_("\n"));
|
printf(_("\n"));
|
||||||
|
|||||||
Reference in New Issue
Block a user