[asterisk-commits] qwell: branch 1.4 r76176 - /branches/1.4/main/manager.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 20 15:54:10 CDT 2007
Author: qwell
Date: Fri Jul 20 15:54:10 2007
New Revision: 76176
URL: http://svn.digium.com/view/asterisk?view=rev&rev=76176
Log:
Eliminate a compiler warning with gcc 4.2 by constifying a char *
Modified:
branches/1.4/main/manager.c
Modified: branches/1.4/main/manager.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/manager.c?view=diff&rev=76176&r1=76175&r2=76176
==============================================================================
--- branches/1.4/main/manager.c (original)
+++ branches/1.4/main/manager.c Fri Jul 20 15:54:10 2007
@@ -819,7 +819,7 @@
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 @@
{
int x, ret = -1;
- x = ast_is_number((char *) string);
+ x = ast_is_number(string);
if (x)
ret = x;
More information about the asterisk-commits
mailing list