[asterisk-commits] russell: trunk r48305 - /trunk/res/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Dec 6 00:31:28 MST 2006
Author: russell
Date: Wed Dec 6 01:31:28 2006
New Revision: 48305
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48305
Log:
Constify a bunch of usage strings for CLI commands.
Modified:
trunk/res/res_agi.c
trunk/res/res_config_pgsql.c
trunk/res/res_crypto.c
trunk/res/res_jabber.c
trunk/res/res_limit.c
trunk/res/res_odbc.c
trunk/res/res_realtime.c
Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?view=diff&rev=48305&r1=48304&r2=48305
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Wed Dec 6 01:31:28 2006
@@ -1306,11 +1306,11 @@
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";
Modified: trunk/res/res_config_pgsql.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_config_pgsql.c?view=diff&rev=48305&r1=48304&r2=48305
==============================================================================
--- trunk/res/res_config_pgsql.c (original)
+++ trunk/res/res_config_pgsql.c Wed Dec 6 01:31:28 2006
@@ -66,7 +66,7 @@
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";
Modified: trunk/res/res_crypto.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_crypto.c?view=diff&rev=48305&r1=48304&r2=48305
==============================================================================
--- trunk/res/res_crypto.c (original)
+++ trunk/res/res_crypto.c Wed Dec 6 01:31:28 2006
@@ -555,11 +555,11 @@
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";
Modified: trunk/res/res_jabber.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_jabber.c?view=diff&rev=48305&r1=48304&r2=48305
==============================================================================
--- trunk/res/res_jabber.c (original)
+++ trunk/res/res_jabber.c Wed Dec 6 01:31:28 2006
@@ -98,19 +98,19 @@
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";
Modified: trunk/res/res_limit.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_limit.c?view=diff&rev=48305&r1=48304&r2=48305
==============================================================================
--- trunk/res/res_limit.c (original)
+++ trunk/res/res_limit.c Wed Dec 6 01:31:28 2006
@@ -132,7 +132,7 @@
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"
Modified: trunk/res/res_odbc.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_odbc.c?view=diff&rev=48305&r1=48304&r2=48305
==============================================================================
--- trunk/res/res_odbc.c (original)
+++ trunk/res/res_odbc.c Wed Dec 6 01:31:28 2006
@@ -341,7 +341,7 @@
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";
Modified: trunk/res/res_realtime.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_realtime.c?view=diff&rev=48305&r1=48304&r2=48305
==============================================================================
--- trunk/res/res_realtime.c (original)
+++ trunk/res/res_realtime.c Wed Dec 6 01:31:28 2006
@@ -93,11 +93,11 @@
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";
More information about the asterisk-commits
mailing list