mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Fix building of chan_h323 with gcc-3.3
There seems to be a bug with old versions of g++ that doesn't allow a structure member to use the name list. Rename list member to group_list in ast_group_info and change the few places it is used. (closes issue #14790) Reported by: stuarth git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -107,7 +107,7 @@ static int group_count_function_read(struct ast_channel *chan, const char *cmd,
|
||||
struct ast_group_info *gi = NULL;
|
||||
|
||||
ast_app_group_list_rdlock();
|
||||
for (gi = ast_app_group_list_head(); gi; gi = AST_LIST_NEXT(gi, list)) {
|
||||
for (gi = ast_app_group_list_head(); gi; gi = AST_LIST_NEXT(gi, group_list)) {
|
||||
if (gi->chan != chan)
|
||||
continue;
|
||||
if (ast_strlen_zero(category) || (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, category)))
|
||||
@@ -170,7 +170,7 @@ static int group_function_read(struct ast_channel *chan, const char *cmd,
|
||||
|
||||
ast_app_group_list_rdlock();
|
||||
|
||||
for (gi = ast_app_group_list_head(); gi; gi = AST_LIST_NEXT(gi, list)) {
|
||||
for (gi = ast_app_group_list_head(); gi; gi = AST_LIST_NEXT(gi, group_list)) {
|
||||
if (gi->chan != chan)
|
||||
continue;
|
||||
if (ast_strlen_zero(data))
|
||||
@@ -225,7 +225,7 @@ static int group_list_function_read(struct ast_channel *chan, const char *cmd,
|
||||
|
||||
ast_app_group_list_rdlock();
|
||||
|
||||
for (gi = ast_app_group_list_head(); gi; gi = AST_LIST_NEXT(gi, list)) {
|
||||
for (gi = ast_app_group_list_head(); gi; gi = AST_LIST_NEXT(gi, group_list)) {
|
||||
if (gi->chan != chan)
|
||||
continue;
|
||||
if (!ast_strlen_zero(tmp1)) {
|
||||
|
Reference in New Issue
Block a user