提交 d9c88301 authored 作者: Michael Jerris's avatar Michael Jerris

fix help

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11044 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5daf2d13
...@@ -243,6 +243,7 @@ static void *msg_thread_run(esl_thread_t *me, void *obj) ...@@ -243,6 +243,7 @@ static void *msg_thread_run(esl_thread_t *me, void *obj)
static int process_command(esl_handle_t *handle, const char *cmd) static int process_command(esl_handle_t *handle, const char *cmd)
{ {
if ((*cmd == '/' && cmd++) || !strncasecmp(cmd, "...", 3)) {
if (!strcasecmp(cmd, "help")) { if (!strcasecmp(cmd, "help")) {
printf( printf(
...@@ -259,8 +260,6 @@ static int process_command(esl_handle_t *handle, const char *cmd) ...@@ -259,8 +260,6 @@ static int process_command(esl_handle_t *handle, const char *cmd)
goto end; goto end;
} }
if ((*cmd == '/' && cmd++) || !strncasecmp(cmd, "...", 3)) {
if ( if (
!strcasecmp(cmd, "exit") || !strcasecmp(cmd, "exit") ||
!strcasecmp(cmd, "quit") || !strcasecmp(cmd, "quit") ||
...@@ -737,10 +736,8 @@ int main(int argc, char *argv[]) ...@@ -737,10 +736,8 @@ int main(int argc, char *argv[])
} }
done:
#ifdef HAVE_EDITLINE #ifdef HAVE_EDITLINE
done:
history(myhistory, &ev, H_SAVE, hfile); history(myhistory, &ev, H_SAVE, hfile);
/* Clean up our memory */ /* Clean up our memory */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论