aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-06 07:35:31 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-06 07:35:31 +0000
commit4299f89c9b8ff9391ad0b111b008bbe6a45d3cf5 (patch)
treef2aa9bac0f6125d2ec1d6183d89b4b7dc7db1cac /channels
parent65590151936edd0a1db4919bce301fa5225bea23 (diff)
Constify a bunch of usage strings for CLI commands.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48306 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_agent.c6
-rw-r--r--channels/chan_alsa.c8
-rw-r--r--channels/chan_features.c2
-rw-r--r--channels/chan_gtalk.c4
-rw-r--r--channels/chan_local.c2
-rw-r--r--channels/chan_mgcp.c10
-rw-r--r--channels/chan_oss.c4
-rw-r--r--channels/chan_skinny.c10
-rw-r--r--channels/iax2-provision.c2
9 files changed, 24 insertions, 24 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c
index 40909b21d..46a08f63d 100644
--- a/channels/chan_agent.c
+++ b/channels/chan_agent.c
@@ -1712,15 +1712,15 @@ static int agents_show_online(int fd, int argc, char **argv)
-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";
diff --git a/channels/chan_alsa.c b/channels/chan_alsa.c
index 965cb18e0..6c52b3c9f 100644
--- a/channels/chan_alsa.c
+++ b/channels/chan_alsa.c
@@ -916,7 +916,7 @@ static int console_answer(int fd, int argc, char *argv[])
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 @@ static int console_sendtext(int fd, int argc, char *argv[])
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 @@ static int console_hangup(int fd, int argc, char *argv[])
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 @@ static int console_dial(int fd, int argc, char *argv[])
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";
diff --git a/channels/chan_features.c b/channels/chan_features.c
index 8a5846d27..83e6e4ae5 100644
--- a/channels/chan_features.c
+++ b/channels/chan_features.c
@@ -529,7 +529,7 @@ static int features_show(int fd, int argc, char **argv)
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";
diff --git a/channels/chan_gtalk.c b/channels/chan_gtalk.c
index e5ec59de6..456a536c9 100644
--- a/channels/chan_gtalk.c
+++ b/channels/chan_gtalk.c
@@ -225,11 +225,11 @@ static struct ast_rtp_protocol gtalk_rtp = {
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";
diff --git a/channels/chan_local.c b/channels/chan_local.c
index e4c7612cf..b8d112bcd 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -659,7 +659,7 @@ static int locals_show(int fd, int argc, char **argv)
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";
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index f798bbd06..2e0833b5f 100644
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -1044,24 +1044,24 @@ static int mgcp_show_endpoints(int fd, int argc, char *argv[])
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";
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index cec9f565a..9f2c3026f 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -1336,7 +1336,7 @@ static int console_transfer(int fd, int argc, char *argv[])
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 @@ static int console_active(int fd, int argc, char *argv[])
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"
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index 951d9b8a3..e01590a42 100644
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -1947,23 +1947,23 @@ static int skinny_show_lines(int fd, int argc, char *argv[])
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";
diff --git a/channels/iax2-provision.c b/channels/iax2-provision.c
index acd7beda8..159d8686e 100644
--- a/channels/iax2-provision.c
+++ b/channels/iax2-provision.c
@@ -399,7 +399,7 @@ static int iax_process_template(struct ast_config *cfg, char *s, char *def)
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";