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
1.6.0
Russell Bryant 19 years ago
parent 17a2888d2e
commit af870057c1

@ -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";

@ -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";

@ -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";

@ -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";

@ -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"

@ -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";

@ -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";

Loading…
Cancel
Save