[asterisk-commits] russell: trunk r227463 - in /trunk: main/manager.c pbx/pbx_config.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 3 16:08:50 CST 2009
Author: russell
Date: Tue Nov 3 16:08:46 2009
New Revision: 227463
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=227463
Log:
Resolve a warning from gcc 4.4.1.
Modified:
trunk/main/manager.c
trunk/pbx/pbx_config.c
Modified: trunk/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/manager.c?view=diff&rev=227463&r1=227462&r2=227463
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Tue Nov 3 16:08:46 2009
@@ -1143,10 +1143,12 @@
{
struct ast_manager_user *user = NULL;
- AST_RWLIST_TRAVERSE(&users, user, list)
+ AST_RWLIST_TRAVERSE(&users, user, list) {
if (!strcasecmp(user->username, name)) {
break;
}
+ }
+
return user;
}
Modified: trunk/pbx/pbx_config.c
URL: http://svnview.digium.com/svn/asterisk/trunk/pbx/pbx_config.c?view=diff&rev=227463&r1=227462&r2=227463
==============================================================================
--- trunk/pbx/pbx_config.c (original)
+++ trunk/pbx/pbx_config.c Tue Nov 3 16:08:46 2009
@@ -38,8 +38,8 @@
#include "asterisk/channel.h" /* AST_MAX_EXTENSION */
#include "asterisk/callerid.h"
-static char *config = "extensions.conf";
-static char *registrar = "pbx_config";
+static const char config[] = "extensions.conf";
+static const char registrar[] = "pbx_config";
static char userscontext[AST_MAX_EXTENSION] = "default";
static int static_config = 0;
More information about the asterisk-commits
mailing list