mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-18 10:44:28 +00:00
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:
@@ -1143,10 +1143,12 @@ static struct ast_manager_user *get_manager_by_name_locked(const char *name)
|
|||||||
{
|
{
|
||||||
struct ast_manager_user *user = NULL;
|
struct ast_manager_user *user = NULL;
|
||||||
|
|
||||||
AST_RWLIST_TRAVERSE(&users, user, list)
|
AST_RWLIST_TRAVERSE(&users, user, list) {
|
||||||
if (!strcasecmp(user->username, name)) {
|
if (!strcasecmp(user->username, name)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -38,8 +38,8 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
|||||||
#include "asterisk/channel.h" /* AST_MAX_EXTENSION */
|
#include "asterisk/channel.h" /* AST_MAX_EXTENSION */
|
||||||
#include "asterisk/callerid.h"
|
#include "asterisk/callerid.h"
|
||||||
|
|
||||||
static char *config = "extensions.conf";
|
static const char config[] = "extensions.conf";
|
||||||
static char *registrar = "pbx_config";
|
static const char registrar[] = "pbx_config";
|
||||||
static char userscontext[AST_MAX_EXTENSION] = "default";
|
static char userscontext[AST_MAX_EXTENSION] = "default";
|
||||||
|
|
||||||
static int static_config = 0;
|
static int static_config = 0;
|
||||||
|
Reference in New Issue
Block a user