From af870057c1034c4309283fc4e77c66c53b15af98 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 6 Dec 2006 07:31:28 +0000 Subject: Constify a bunch of usage strings for CLI commands. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48305 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_agi.c | 4 ++-- res/res_config_pgsql.c | 2 +- res/res_crypto.c | 4 ++-- res/res_jabber.c | 8 ++++---- res/res_limit.c | 2 +- res/res_odbc.c | 2 +- res/res_realtime.c | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/res/res_agi.c b/res/res_agi.c index 62970a2e2..b4d617025 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1306,11 +1306,11 @@ static int handle_dbdeltree(struct ast_channel *chan, AGI *agi, int argc, char * return RESULT_SUCCESS; } -static char debug_usage[] = +static const char debug_usage[] = "Usage: agi debug\n" " Enables dumping of AGI transactions for debugging purposes\n"; -static char no_debug_usage[] = +static const char no_debug_usage[] = "Usage: agi nodebug\n" " Disables dumping of AGI transactions for debugging purposes\n"; diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c index cebad75a8..ed9b65e3e 100644 --- a/res/res_config_pgsql.c +++ b/res/res_config_pgsql.c @@ -66,7 +66,7 @@ static int parse_config(void); static int pgsql_reconnect(const char *database); static int realtime_pgsql_status(int fd, int argc, char **argv); -static char cli_realtime_pgsql_status_usage[] = +static const char cli_realtime_pgsql_status_usage[] = "Usage: realtime pgsql status\n" " Shows connection information for the Postgresql RealTime driver\n"; diff --git a/res/res_crypto.c b/res/res_crypto.c index b5035b1c5..888564ea8 100644 --- a/res/res_crypto.c +++ b/res/res_crypto.c @@ -555,11 +555,11 @@ static int init_keys(int fd, int argc, char *argv[]) return RESULT_SUCCESS; } -static char show_key_usage[] = +static const char show_key_usage[] = "Usage: keys show\n" " Displays information about RSA keys known by Asterisk\n"; -static char init_keys_usage[] = +static const char init_keys_usage[] = "Usage: keys init\n" " Initializes private keys (by reading in pass code from the user)\n"; diff --git a/res/res_jabber.c b/res/res_jabber.c index fcf145659..75bf1fef2 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -98,19 +98,19 @@ static int aji_register_transport(void *data, ikspak *pak); static int aji_register_transport2(void *data, ikspak *pak); */ -static char debug_usage[] = +static const char debug_usage[] = "Usage: jabber debug\n" " Enables dumping of Jabber packets for debugging purposes.\n"; -static char no_debug_usage[] = +static const char no_debug_usage[] = "Usage: jabber debug off\n" " Disables dumping of Jabber packets for debugging purposes.\n"; -static char reload_usage[] = +static const char reload_usage[] = "Usage: jabber reload\n" " Enables reloading of Jabber module.\n"; -static char test_usage[] = +static const char test_usage[] = "Usage: jabber test [client]\n" " Sends test message for debugging purposes. A specific client\n" " as configured in jabber.conf can be optionally specified.\n"; diff --git a/res/res_limit.c b/res/res_limit.c index 31fd46328..217858d67 100644 --- a/res/res_limit.c +++ b/res/res_limit.c @@ -132,7 +132,7 @@ static char *complete_ulimit(const char *line, const char *word, int pos, int st return NULL; } -static char ulimit_usage[] = +static const char ulimit_usage[] = "Usage: ulimit {-d|-l|-f|-m|-s|-t|-u|-v|-c|-n} []\n" " Shows or sets the corresponding resource limit.\n" " -d Process data segment [readonly]\n" diff --git a/res/res_odbc.c b/res/res_odbc.c index 38e82c71a..9ee3b8fc9 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -341,7 +341,7 @@ static int odbc_show_command(int fd, int argc, char **argv) return 0; } -static char show_usage[] = +static const char show_usage[] = "Usage: odbc show []\n" " List settings of a particular ODBC class.\n" " or, if not specified, all classes.\n"; diff --git a/res/res_realtime.c b/res/res_realtime.c index ee1073576..1a750d9cf 100644 --- a/res/res_realtime.c +++ b/res/res_realtime.c @@ -93,11 +93,11 @@ static int cli_realtime_update(int fd, int argc, char **argv) { return RESULT_SUCCESS; } -static char cli_realtime_load_usage[] = +static const char cli_realtime_load_usage[] = "Usage: realtime load \n" " Prints out a list of variables using the RealTime driver.\n"; -static char cli_realtime_update_usage[] = +static const char cli_realtime_update_usage[] = "Usage: realtime update \n" " Update a single variable using the RealTime driver.\n"; -- cgit v1.2.3