[asterisk-commits] russell: trunk r48306 - /trunk/channels/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Dec 6 00:35:32 MST 2006
Author: russell
Date: Wed Dec 6 01:35:31 2006
New Revision: 48306
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48306
Log:
Constify a bunch of usage strings for CLI commands.
Modified:
trunk/channels/chan_agent.c
trunk/channels/chan_alsa.c
trunk/channels/chan_features.c
trunk/channels/chan_gtalk.c
trunk/channels/chan_local.c
trunk/channels/chan_mgcp.c
trunk/channels/chan_oss.c
trunk/channels/chan_skinny.c
trunk/channels/iax2-provision.c
Modified: trunk/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_agent.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/chan_agent.c (original)
+++ trunk/channels/chan_agent.c Wed Dec 6 01:35:31 2006
@@ -1712,15 +1712,15 @@
-static char show_agents_usage[] =
+static const char show_agents_usage[] =
"Usage: agent show\n"
" Provides summary information on agents.\n";
-static char show_agents_online_usage[] =
+static const char show_agents_online_usage[] =
"Usage: agent show online\n"
" Provides a list of all online agents.\n";
-static char agent_logoff_usage[] =
+static const char agent_logoff_usage[] =
"Usage: agent logoff <channel> [soft]\n"
" Sets an agent as no longer logged in.\n"
" If 'soft' is specified, do not hangup existing calls.\n";
Modified: trunk/channels/chan_alsa.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_alsa.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/chan_alsa.c (original)
+++ trunk/channels/chan_alsa.c Wed Dec 6 01:35:31 2006
@@ -916,7 +916,7 @@
return RESULT_SUCCESS;
}
-static char sendtext_usage[] =
+static const char sendtext_usage[] =
"Usage: console send text <message>\n"
" Sends a text message for display on the remote terminal.\n";
@@ -961,7 +961,7 @@
return res;
}
-static char answer_usage[] =
+static const char answer_usage[] =
"Usage: console answer\n"
" Answers an incoming call on the console (ALSA) channel.\n";
@@ -993,7 +993,7 @@
return res;
}
-static char hangup_usage[] =
+static const char hangup_usage[] =
"Usage: console hangup\n"
" Hangs up any call currently placed on the console.\n";
@@ -1054,7 +1054,7 @@
return res;
}
-static char dial_usage[] =
+static const char dial_usage[] =
"Usage: console dial [extension[@context]]\n"
" Dials a given extension (and context if specified)\n";
Modified: trunk/channels/chan_features.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_features.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/chan_features.c (original)
+++ trunk/channels/chan_features.c Wed Dec 6 01:35:31 2006
@@ -529,7 +529,7 @@
return RESULT_SUCCESS;
}
-static char show_features_usage[] =
+static const char show_features_usage[] =
"Usage: feature show channels\n"
" Provides summary information on feature channels.\n";
Modified: trunk/channels/chan_gtalk.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_gtalk.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/chan_gtalk.c (original)
+++ trunk/channels/chan_gtalk.c Wed Dec 6 01:35:31 2006
@@ -225,11 +225,11 @@
get_codec: gtalk_get_codec,
};
-static char debug_usage[] =
+static const char debug_usage[] =
"Usage: gtalk show channels\n"
" Shows current state of the Gtalk channels.\n";
-static char reload_usage[] =
+static const char reload_usage[] =
"Usage: gtalk reload\n"
" Reload gtalk channel driver.\n";
Modified: trunk/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_local.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/chan_local.c (original)
+++ trunk/channels/chan_local.c Wed Dec 6 01:35:31 2006
@@ -659,7 +659,7 @@
return RESULT_SUCCESS;
}
-static char show_locals_usage[] =
+static const char show_locals_usage[] =
"Usage: local show channels\n"
" Provides summary information on active local proxy channels.\n";
Modified: trunk/channels/chan_mgcp.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_mgcp.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/chan_mgcp.c (original)
+++ trunk/channels/chan_mgcp.c Wed Dec 6 01:35:31 2006
@@ -1044,24 +1044,24 @@
return RESULT_SUCCESS;
}
-static char show_endpoints_usage[] =
+static const char show_endpoints_usage[] =
"Usage: mgcp show endpoints\n"
" Lists all endpoints known to the MGCP (Media Gateway Control Protocol) subsystem.\n";
-static char audit_endpoint_usage[] =
+static const char audit_endpoint_usage[] =
"Usage: mgcp audit endpoint <endpointid>\n"
" Lists the capabilities of an endpoint in the MGCP (Media Gateway Control Protocol) subsystem.\n"
" mgcp debug MUST be on to see the results of this command.\n";
-static char debug_usage[] =
+static const char debug_usage[] =
"Usage: mgcp set debug\n"
" Enables dumping of MGCP packets for debugging purposes\n";
-static char no_debug_usage[] =
+static const char no_debug_usage[] =
"Usage: mgcp set debug off\n"
" Disables dumping of MGCP packets for debugging purposes\n";
-static char mgcp_reload_usage[] =
+static const char mgcp_reload_usage[] =
"Usage: mgcp reload\n"
" Reloads MGCP configuration from mgcp.conf\n"
" Deprecated: please use 'reload chan_mgcp.so' instead.\n";
Modified: trunk/channels/chan_oss.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_oss.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/chan_oss.c (original)
+++ trunk/channels/chan_oss.c Wed Dec 6 01:35:31 2006
@@ -1336,7 +1336,7 @@
return RESULT_SUCCESS;
}
-static char transfer_usage[] =
+static const char transfer_usage[] =
"Usage: console transfer <extension>[@context]\n"
" Transfers the currently connected call to the given extension (and\n"
"context if specified)\n";
@@ -1363,7 +1363,7 @@
return RESULT_SUCCESS;
}
-static char active_usage[] =
+static const char active_usage[] =
"Usage: console active [device]\n"
" If used without a parameter, displays which device is the current\n"
"console. If a device is specified, the console sound device is changed to\n"
Modified: trunk/channels/chan_skinny.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Wed Dec 6 01:35:31 2006
@@ -1947,23 +1947,23 @@
return RESULT_SUCCESS;
}
-static char show_devices_usage[] =
+static const char show_devices_usage[] =
"Usage: skinny show devices\n"
" Lists all devices known to the Skinny subsystem.\n";
-static char show_lines_usage[] =
+static const char show_lines_usage[] =
"Usage: skinny show lines\n"
" Lists all lines known to the Skinny subsystem.\n";
-static char debug_usage[] =
+static const char debug_usage[] =
"Usage: skinny set debug\n"
" Enables dumping of Skinny packets for debugging purposes\n";
-static char no_debug_usage[] =
+static const char no_debug_usage[] =
"Usage: skinny set debug off\n"
" Disables dumping of Skinny packets for debugging purposes\n";
-static char reset_usage[] =
+static const char reset_usage[] =
"Usage: skinny reset <DeviceId|all> [restart]\n"
" Causes a Skinny device to reset itself, optionally with a full restart\n";
Modified: trunk/channels/iax2-provision.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/iax2-provision.c?view=diff&rev=48306&r1=48305&r2=48306
==============================================================================
--- trunk/channels/iax2-provision.c (original)
+++ trunk/channels/iax2-provision.c Wed Dec 6 01:35:31 2006
@@ -399,7 +399,7 @@
return 0;
}
-static char show_provisioning_usage[] =
+static const char show_provisioning_usage[] =
"Usage: iax list provisioning [template]\n"
" Lists all known IAX provisioning templates or a\n"
" specific one if specified.\n";
More information about the asterisk-commits
mailing list