Resolve a warning from gcc 4.4.1.
authorRussell Bryant <russell@russellbryant.com>
Tue, 3 Nov 2009 22:08:46 +0000 (22:08 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 3 Nov 2009 22:08:46 +0000 (22:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227463 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c
pbx/pbx_config.c

index 17f487f..a5fc427 100644 (file)
@@ -1143,10 +1143,12 @@ static struct ast_manager_user *get_manager_by_name_locked(const char *name)
 {
        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;
 }
 
index 69291aa..a14ad69 100644 (file)
@@ -38,8 +38,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #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;