aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-20 20:54:10 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-20 20:54:10 +0000
commit8d787033ff11501145ce5903e5e1e84c87a03814 (patch)
tree5458aef707a27dea515c9d4ba45f8b949f578e7d
parent88bd3d2c2abb1de4ea3aa1fe9f490aa65c444c1b (diff)
Eliminate a compiler warning with gcc 4.2 by constifying a char *
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76176 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/manager.c b/main/manager.c
index 4f53663be..2256a30f8 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -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;