aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-06 07:31:28 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-06 07:31:28 +0000
commit65590151936edd0a1db4919bce301fa5225bea23 (patch)
treec3963439b13561c2e5461fce801ed39b8b6bb6e8
parent0a0c8869de31bb9f76c2baecf48917c0824895c4 (diff)
Constify a bunch of usage strings for CLI commands.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48305 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--res/res_agi.c4
-rw-r--r--res/res_config_pgsql.c2
-rw-r--r--res/res_crypto.c4
-rw-r--r--res/res_jabber.c8
-rw-r--r--res/res_limit.c2
-rw-r--r--res/res_odbc.c2
-rw-r--r--res/res_realtime.c4
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} [<num>]\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 [<class>]\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 <family> <colmatch> <value>\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 <family> <colmatch> <value>\n"
" Update a single variable using the RealTime driver.\n";