From f586cdb70409506a731e87ba9685a31dbb543e46 Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Sat, 16 Jan 2021 20:32:57 +1100 Subject: [PATCH] remove default information message at help call --- src/66/66-boot.c | 4 +++- src/66/66-hpr.c | 4 +++- src/66/66-inresolve.c | 4 +++- src/66/66-inservice.c | 4 +++- src/66/66-instate.c | 4 +++- src/66/66-intree.c | 4 +++- src/66/66-parser.c | 4 +++- src/66/66-scanctl.c | 4 +++- src/66/66-scandir.c | 4 +++- src/66/66-shutdown.c | 4 +++- src/66/66-shutdownd.c | 4 +++- src/66/66-tree.c | 4 +++- src/66/66-update.c | 3 ++- 13 files changed, 38 insertions(+), 13 deletions(-) diff --git a/src/66/66-boot.c b/src/66/66-boot.c index f7c0089a..eb885e18 100644 --- a/src/66/66-boot.c +++ b/src/66/66-boot.c @@ -92,7 +92,9 @@ static void sulogin(char const *msg,char const *arg) static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-hpr.c b/src/66/66-hpr.c index 65ee7d72..ca093be1 100644 --- a/src/66/66-hpr.c +++ b/src/66/66-hpr.c @@ -53,7 +53,9 @@ char const *live = 0 ; static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -H: print this help\n" diff --git a/src/66/66-inresolve.c b/src/66/66-inresolve.c index 81f89bfc..b9f721ce 100644 --- a/src/66/66-inresolve.c +++ b/src/66/66-inresolve.c @@ -40,7 +40,9 @@ static char fields[INFO_NKEY][INFO_FIELD_MAXLEN] = {{ 0 }} ; static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-inservice.c b/src/66/66-inservice.c index 9bcdc3e1..9a2d29c4 100644 --- a/src/66/66-inservice.c +++ b/src/66/66-inservice.c @@ -108,7 +108,9 @@ info_opts_map_t const opts_sv_table[] = static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-instate.c b/src/66/66-instate.c index 73cc87c8..0e0078d2 100644 --- a/src/66/66-instate.c +++ b/src/66/66-instate.c @@ -41,7 +41,9 @@ static char fields[INFO_NKEY][INFO_FIELD_MAXLEN] = {{ 0 }} ; static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-intree.c b/src/66/66-intree.c index c8e8019c..2e1ba32e 100644 --- a/src/66/66-intree.c +++ b/src/66/66-intree.c @@ -84,7 +84,9 @@ info_opts_map_t const opts_tree_table[] = static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-parser.c b/src/66/66-parser.c index ca40cb50..bb6f7704 100644 --- a/src/66/66-parser.c +++ b/src/66/66-parser.c @@ -36,7 +36,9 @@ static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-scanctl.c b/src/66/66-scanctl.c index 0575077b..6b40aecc 100644 --- a/src/66/66-scanctl.c +++ b/src/66/66-scanctl.c @@ -34,7 +34,9 @@ static char TMPENV[MAXENV + 1] ; static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-scandir.c b/src/66/66-scandir.c index 799ff93a..8759b19c 100644 --- a/src/66/66-scandir.c +++ b/src/66/66-scandir.c @@ -69,7 +69,9 @@ static unsigned int CATCH_LOG = SS_BOOT_CATCH_LOG ; static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-shutdown.c b/src/66/66-shutdown.c index 9bc6cec9..53e4571a 100644 --- a/src/66/66-shutdown.c +++ b/src/66/66-shutdown.c @@ -54,7 +54,9 @@ static char const *live = 0 ; static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -H: print this help\n" diff --git a/src/66/66-shutdownd.c b/src/66/66-shutdownd.c index 1d3e776e..940fcc24 100644 --- a/src/66/66-shutdownd.c +++ b/src/66/66-shutdownd.c @@ -66,7 +66,9 @@ static int nologger = 0 ; static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-tree.c b/src/66/66-tree.c index 57edcb62..1996600b 100644 --- a/src/66/66-tree.c +++ b/src/66/66-tree.c @@ -50,7 +50,9 @@ static char const *cleantree = 0 ; static inline void info_help (void) { - static char const *help = + DEFAULT_MSG = 0 ; + + static char const *help = "\n" "options :\n" " -h: print this help\n" diff --git a/src/66/66-update.c b/src/66/66-update.c index c79f43db..f94307c8 100644 --- a/src/66/66-update.c +++ b/src/66/66-update.c @@ -45,11 +45,12 @@ static stralloc WORKDIR = STRALLOC_ZERO ; static uint8_t DRYRUN = 0 ; static char *drun = "dry run do: " ; + static inline void info_help (void) { DEFAULT_MSG = 0 ; - static char const *help = + static char const *help = "\n" "options :\n" " -h: print this help\n" -- GitLab