]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Eliminate a compiler warning with gcc 4.2 by constifying a char *
authorJason Parker <jparker@digium.com>
Fri, 20 Jul 2007 20:54:10 +0000 (20:54 +0000)
committerJason Parker <jparker@digium.com>
Fri, 20 Jul 2007 20:54:10 +0000 (20:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76176 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 4f53663be6b259b570e404d716a446ed30533481..2256a30f8aedb9aa2c1ab0af5d1b855b01ef8080 100644 (file)
@@ -819,7 +819,7 @@ static int get_perm(const char *instr)
        return ret;
 }
 
-static int ast_is_number(char *string) 
+static int ast_is_number(const char *string) 
 {
        int ret = 1, x = 0;
 
@@ -840,7 +840,7 @@ static int strings_to_mask(const char *string)
 {
        int x, ret = -1;
        
-       x = ast_is_number((char *) string);
+       x = ast_is_number(string);
 
        if (x)
                ret = x;