diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-12-06 07:28:56 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-12-06 07:28:56 +0000 |
commit | 17a2888d2ecce2be86805e0350fa68c6a2298b71 (patch) | |
tree | 27838547cec4633c54c59f30624fe0e640633c38 /main | |
parent | a44e55a3f3efdc5dde27954dfcf5e1e5da579971 (diff) |
Staticize one, and Constify a bunch of usage strings for CLI commands.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 4 | ||||
-rw-r--r-- | main/db.c | 12 | ||||
-rw-r--r-- | main/file.c | 2 | ||||
-rw-r--r-- | main/frame.c | 4 | ||||
-rw-r--r-- | main/rtp.c | 16 | ||||
-rw-r--r-- | main/translate.c | 2 | ||||
-rw-r--r-- | main/udptl.c | 4 |
7 files changed, 22 insertions, 22 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"; @@ -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"; |