Resolve a warning from gcc 4.4.1.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
a0198fc3ee
commit
b0778107c7
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue