diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-20 20:54:10 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-20 20:54:10 +0000 |
commit | 8d787033ff11501145ce5903e5e1e84c87a03814 (patch) | |
tree | 5458aef707a27dea515c9d4ba45f8b949f578e7d /main | |
parent | 88bd3d2c2abb1de4ea3aa1fe9f490aa65c444c1b (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
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 4 |
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; |