aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-06 07:28:56 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-06 07:28:56 +0000
commit0a0c8869de31bb9f76c2baecf48917c0824895c4 (patch)
tree27838547cec4633c54c59f30624fe0e640633c38
parent8048b9c7182af432df0b85927e96fe6b797be420 (diff)
Staticize one, and Constify a bunch of usage strings for CLI commands.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48303 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/channel.c4
-rw-r--r--main/db.c12
-rw-r--r--main/file.c2
-rw-r--r--main/frame.c4
-rw-r--r--main/rtp.c16
-rw-r--r--main/translate.c2
-rw-r--r--main/udptl.c4
-rw-r--r--pbx/pbx_dundi.c30
8 files changed, 37 insertions, 37 deletions
diff --git a/main/channel.c b/main/channel.c
index 95f241d64..ac59eb352 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -289,11 +289,11 @@ static char *complete_channeltypes(const char *line, const char *word, int pos,
return ret;
}
-static char show_channeltypes_usage[] =
+static const char show_channeltypes_usage[] =
"Usage: core show channeltypes\n"
" Lists available channel types registered in your Asterisk server.\n";
-static char show_channeltype_usage[] =
+static const char show_channeltype_usage[] =
"Usage: core show channeltype <name>\n"
" Show details about the specified channel type, <name>.\n";
diff --git a/main/db.c b/main/db.c
index dfadac09c..34ebfac52 100644
--- a/main/db.c
+++ b/main/db.c
@@ -467,31 +467,31 @@ void ast_db_freetree(struct ast_db_entry *dbe)
}
}
-static char database_show_usage[] =
+static const char database_show_usage[] =
"Usage: database show [family [keytree]]\n"
" Shows Asterisk database contents, optionally restricted\n"
"to a given family, or family and keytree.\n";
-static char database_showkey_usage[] =
+static const char database_showkey_usage[] =
"Usage: database showkey <keytree>\n"
" Shows Asterisk database contents, restricted to a given key.\n";
-static char database_put_usage[] =
+static const char database_put_usage[] =
"Usage: database put <family> <key> <value>\n"
" Adds or updates an entry in the Asterisk database for\n"
"a given family, key, and value.\n";
-static char database_get_usage[] =
+static const char database_get_usage[] =
"Usage: database get <family> <key>\n"
" Retrieves an entry in the Asterisk database for a given\n"
"family and key.\n";
-static char database_del_usage[] =
+static const char database_del_usage[] =
"Usage: database del <family> <key>\n"
" Deletes an entry in the Asterisk database for a given\n"
"family and key.\n";
-static char database_deltree_usage[] =
+static const char database_deltree_usage[] =
"Usage: database deltree <family> [keytree]\n"
" Deletes a family or specific keytree within a family\n"
"in the Asterisk database.\n";
diff --git a/main/file.c b/main/file.c
index cd6afb9bd..c5fb522d3 100644
--- a/main/file.c
+++ b/main/file.c
@@ -1156,7 +1156,7 @@ static int show_file_formats(int fd, int argc, char *argv[])
#undef FORMAT2
}
-char show_file_formats_usage[] =
+static const char show_file_formats_usage[] =
"Usage: core show file formats\n"
" Displays currently registered file formats (if any)\n";
diff --git a/main/frame.c b/main/frame.c
index 6e539e7c9..52d5ecfc2 100644
--- a/main/frame.c
+++ b/main/frame.c
@@ -648,7 +648,7 @@ static int show_codecs(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
-static char frame_show_codecs_usage[] =
+static const char frame_show_codecs_usage[] =
"Usage: core show codecs [audio|video|image]\n"
" Displays codec mapping\n";
@@ -877,7 +877,7 @@ static int show_frame_stats(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
-static char frame_stats_usage[] =
+static const char frame_stats_usage[] =
"Usage: core show frame stats\n"
" Displays debugging statistics from framer\n";
#endif
diff --git a/main/rtp.c b/main/rtp.c
index 7163f1601..72780cf47 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -3412,35 +3412,35 @@ static int stun_no_debug(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
-static char debug_usage[] =
+static const char debug_usage[] =
"Usage: rtp debug [ip host[:port]]\n"
" Enable dumping of all RTP packets to and from host.\n";
-static char no_debug_usage[] =
+static const char no_debug_usage[] =
"Usage: rtp debug off\n"
" Disable all RTP debugging\n";
-static char stun_debug_usage[] =
+static const char stun_debug_usage[] =
"Usage: stun debug\n"
" Enable STUN (Simple Traversal of UDP through NATs) debugging\n";
-static char stun_no_debug_usage[] =
+static const char stun_no_debug_usage[] =
"Usage: stun debug off\n"
" Disable STUN debugging\n";
-static char rtcp_debug_usage[] =
+static const char rtcp_debug_usage[] =
"Usage: rtcp debug [ip host[:port]]\n"
" Enable dumping of all RTCP packets to and from host.\n";
-static char rtcp_no_debug_usage[] =
+static const char rtcp_no_debug_usage[] =
"Usage: rtcp debug off\n"
" Disable all RTCP debugging\n";
-static char rtcp_stats_usage[] =
+static const char rtcp_stats_usage[] =
"Usage: rtcp stats\n"
" Enable dumping of RTCP stats.\n";
-static char rtcp_no_stats_usage[] =
+static const char rtcp_no_stats_usage[] =
"Usage: rtcp stats off\n"
" Disable all RTCP stats\n";
diff --git a/main/translate.c b/main/translate.c
index 6663cdca3..5fc5101b4 100644
--- a/main/translate.c
+++ b/main/translate.c
@@ -558,7 +558,7 @@ static int show_translation(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
-static char show_trans_usage[] =
+static const char show_trans_usage[] =
"Usage: core show translation [recalc] [<recalc seconds>]\n"
" Displays known codec translators and the cost associated\n"
"with each conversion. If the argument 'recalc' is supplied along\n"
diff --git a/main/udptl.c b/main/udptl.c
index 91a626c8f..42594af91 100644
--- a/main/udptl.c
+++ b/main/udptl.c
@@ -1153,11 +1153,11 @@ static int udptl_nodebug(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
-static char debug_usage[] =
+static const char debug_usage[] =
"Usage: udptl debug [ip host[:port]]\n"
" Enable dumping of all UDPTL packets to and from host.\n";
-static char nodebug_usage[] =
+static const char nodebug_usage[] =
"Usage: udptl debug off\n"
" Disable all UDPTL debugging\n";
diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c
index 91fb8955c..44f6c2c38 100644
--- a/pbx/pbx_dundi.c
+++ b/pbx/pbx_dundi.c
@@ -2631,71 +2631,71 @@ static int dundi_show_precache(int fd, int argc, char *argv[])
#undef FORMAT2
}
-static char debug_usage[] =
+static const char debug_usage[] =
"Usage: dundi debug\n"
" Enables dumping of DUNDi packets for debugging purposes\n";
-static char no_debug_usage[] =
+static const char no_debug_usage[] =
"Usage: dundi no debug\n"
" Disables dumping of DUNDi packets for debugging purposes\n";
-static char store_history_usage[] =
+static const char store_history_usage[] =
"Usage: dundi store history\n"
" Enables storing of DUNDi requests and times for debugging\n"
"purposes\n";
-static char no_store_history_usage[] =
+static const char no_store_history_usage[] =
"Usage: dundi no store history\n"
" Disables storing of DUNDi requests and times for debugging\n"
"purposes\n";
-static char show_peers_usage[] =
+static const char show_peers_usage[] =
"Usage: dundi show peers\n"
" Lists all known DUNDi peers.\n";
-static char show_trans_usage[] =
+static const char show_trans_usage[] =
"Usage: dundi show trans\n"
" Lists all known DUNDi transactions.\n";
-static char show_mappings_usage[] =
+static const char show_mappings_usage[] =
"Usage: dundi show mappings\n"
" Lists all known DUNDi mappings.\n";
-static char show_precache_usage[] =
+static const char show_precache_usage[] =
"Usage: dundi show precache\n"
" Lists all known DUNDi scheduled precache updates.\n";
-static char show_entityid_usage[] =
+static const char show_entityid_usage[] =
"Usage: dundi show entityid\n"
" Displays the global entityid for this host.\n";
-static char show_peer_usage[] =
+static const char show_peer_usage[] =
"Usage: dundi show peer [peer]\n"
" Provide a detailed description of a specifid DUNDi peer.\n";
-static char show_requests_usage[] =
+static const char show_requests_usage[] =
"Usage: dundi show requests\n"
" Lists all known pending DUNDi requests.\n";
-static char lookup_usage[] =
+static const char lookup_usage[] =
"Usage: dundi lookup <number>[@context] [bypass]\n"
" Lookup the given number within the given DUNDi context\n"
"(or e164 if none is specified). Bypasses cache if 'bypass'\n"
"keyword is specified.\n";
-static char precache_usage[] =
+static const char precache_usage[] =
"Usage: dundi precache <number>[@context]\n"
" Lookup the given number within the given DUNDi context\n"
"(or e164 if none is specified) and precaches the results to any\n"
"upstream DUNDi push servers.\n";
-static char query_usage[] =
+static const char query_usage[] =
"Usage: dundi query <entity>[@context]\n"
" Attempts to retrieve contact information for a specific\n"
"DUNDi entity identifier (EID) within a given DUNDi context (or\n"
"e164 if none is specified).\n";
-static char flush_usage[] =
+static const char flush_usage[] =
"Usage: dundi flush [stats]\n"
" Flushes DUNDi answer cache, used primarily for debug. If\n"
"'stats' is present, clears timer statistics instead of normal\n"