]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Constify a bunch of usage strings for CLI commands.
authorRussell Bryant <russell@russellbryant.com>
Wed, 6 Dec 2006 07:31:28 +0000 (07:31 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 6 Dec 2006 07:31:28 +0000 (07:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48305 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c
res/res_config_pgsql.c
res/res_crypto.c
res/res_jabber.c
res/res_limit.c
res/res_odbc.c
res/res_realtime.c

index 62970a2e23cce034ef4465834f81fc1e8abdd22c..b4d61702514921294025c51872c288829e9b67a6 100644 (file)
@@ -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";
 
index cebad75a8a3e1d8e027f9e5afa1ad8a2d5712504..ed9b65e3ed5845d265a70b00174f0403157c7cfb 100644 (file)
@@ -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";
 
index b5035b1c58a4ac7fde38875550627b15ea01f7a9..888564ea872427990e67d838b7d6fb4a2ee606d4 100644 (file)
@@ -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";
 
index fcf145659773a8fe11ab21a759b12c0a65fa53d8..75bf1fef24f9c9a5915718eabdabb98be467231f 100644 (file)
@@ -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";
index 31fd46328c01a5fed1c67092ad6e1f8e783b84ec..217858d6753297120e6fc036ecb62ea7259c9202 100644 (file)
@@ -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"
index 38e82c71af31166efbcfbc84f929afbcf722ec3f..9ee3b8fc940ea4a7586dab13c20b2ae7b4ed86c7 100644 (file)
@@ -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";
index ee107357632909f2891b2122ad649470bdf7fd69..1a750d9cff4de715f1f0792cd63819dc9bb43f3c 100644 (file)
@@ -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";