mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
Return module show to a working state. (issue #8353 reported by jserve)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
10
main/cli.c
10
main/cli.c
@@ -408,7 +408,7 @@ static int modlist_modentry(const char *module, const char *description, int use
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char modlist_help[] =
|
static char modlist_help[] =
|
||||||
"Usage: core show modules [like keyword]\n"
|
"Usage: module show [like keyword]\n"
|
||||||
" Shows Asterisk modules currently in use, and usage statistics.\n";
|
" Shows Asterisk modules currently in use, and usage statistics.\n";
|
||||||
|
|
||||||
static char uptime_help[] =
|
static char uptime_help[] =
|
||||||
@@ -487,12 +487,12 @@ static int handle_showuptime(int fd, int argc, char *argv[])
|
|||||||
static int handle_modlist(int fd, int argc, char *argv[])
|
static int handle_modlist(int fd, int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char *like = "";
|
char *like = "";
|
||||||
if (argc != 3 && argc != 5)
|
if (argc != 2 && argc != 4)
|
||||||
return RESULT_SHOWUSAGE;
|
return RESULT_SHOWUSAGE;
|
||||||
else if (argc == 5) {
|
else if (argc == 4) {
|
||||||
if (strcmp(argv[3],"like"))
|
if (strcmp(argv[2],"like"))
|
||||||
return RESULT_SHOWUSAGE;
|
return RESULT_SHOWUSAGE;
|
||||||
like = argv[4];
|
like = argv[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_mutex_lock(&climodentrylock);
|
ast_mutex_lock(&climodentrylock);
|
||||||
|
|||||||
Reference in New Issue
Block a user