]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix typos (bug #3162)
authorRussell Bryant <russell@russellbryant.com>
Thu, 30 Dec 2004 21:16:25 +0000 (21:16 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 30 Dec 2004 21:16:25 +0000 (21:16 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4610 65c4cc65-6c06-0410-ace0-fbb531ad65f3

asterisk.c
cli.c

index 9bbe5613f9428e551d522d9ae65e19e9ad6f5a18..909abc853bba49c1766035e933f34c123e7e2250 100755 (executable)
@@ -1404,9 +1404,9 @@ static void ast_remotecontrol(char * data)
                pid = atoi(cpid);
        else
                pid = -1;
-       snprintf(tmp, sizeof(tmp), "set verbose at least %d", option_verbose);
+       snprintf(tmp, sizeof(tmp), "set verbose atleast %d", option_verbose);
        fdprint(ast_consock, tmp);
-       snprintf(tmp, sizeof(tmp), "set debug at least %d", option_debug);
+       snprintf(tmp, sizeof(tmp), "set debug atleast %d", option_debug);
        fdprint(ast_consock, tmp);
        ast_verbose("Connected to Asterisk %s currently running on %s (pid = %d)\n", version, hostname, pid);
        remotehostname = hostname;
diff --git a/cli.c b/cli.c
index b510ddb14646a01515631dc472f2d671cad1d672..44227d8ce072afac424086dd2182f29113df49d6 100755 (executable)
--- a/cli.c
+++ b/cli.c
@@ -147,7 +147,7 @@ static int handle_set_verbose(int fd, int argc, char *argv[])
        if (oldval != option_verbose && option_verbose > 0)
                ast_cli(fd, "Verbosity was %d and is now %d\n", oldval, option_verbose);
        else if (oldval > 0 && option_verbose > 0)
-               ast_cli(fd, "Verbosity is atleast %d\n", option_verbose);
+               ast_cli(fd, "Verbosity is at least %d\n", option_verbose);
        else if (oldval > 0 && option_verbose == 0)
                ast_cli(fd, "Verbosity is now OFF\n");
        return RESULT_SUCCESS;
@@ -157,6 +157,7 @@ static int handle_set_debug(int fd, int argc, char *argv[])
 {
        int val = 0;
        int oldval = 0;
+
        /* Has a hidden 'at least' argument */
        if ((argc != 3) && (argc != 4))
                return RESULT_SHOWUSAGE;
@@ -173,7 +174,7 @@ static int handle_set_debug(int fd, int argc, char *argv[])
        if (oldval != option_debug && option_debug > 0)
                ast_cli(fd, "Core debug was %d and is now %d\n", oldval, option_debug);
        else if (oldval > 0 && option_debug > 0)
-               ast_cli(fd, "Core debug is atleast %d\n", option_debug);
+               ast_cli(fd, "Core debug is at least %d\n", option_debug);
        else if (oldval > 0 && option_debug == 0)
                ast_cli(fd, "Core debug is now OFF\n");
        return RESULT_SUCCESS;