summaryrefslogtreecommitdiff
path: root/main/app.c
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@digium.com>2009-04-22 21:15:55 +0000
committerJeff Peeler <jpeeler@digium.com>2009-04-22 21:15:55 +0000
commit11ac1f7e11fb2bafc7379ca67e5a334a6f947e96 (patch)
tree5a632762f1665dad4db9749279a8a216d0a9dd90 /main/app.c
parent3fb648d8fadc461ba1a77ea681d431eda2d50e30 (diff)
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
Diffstat (limited to 'main/app.c')
-rw-r--r--main/app.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/main/app.c b/main/app.c
index b94657b4c..8e28b0c9a 100644
--- a/main/app.c
+++ b/main/app.c
@@ -1014,9 +1014,9 @@ int ast_app_group_set_channel(struct ast_channel *chan, const char *data)
}
AST_RWLIST_WRLOCK(&groups);
- AST_RWLIST_TRAVERSE_SAFE_BEGIN(&groups, gi, list) {
+ AST_RWLIST_TRAVERSE_SAFE_BEGIN(&groups, gi, group_list) {
if ((gi->chan == chan) && ((ast_strlen_zero(category) && ast_strlen_zero(gi->category)) || (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, category)))) {
- AST_RWLIST_REMOVE_CURRENT(list);
+ AST_RWLIST_REMOVE_CURRENT(group_list);
free(gi);
break;
}
@@ -1033,7 +1033,7 @@ int ast_app_group_set_channel(struct ast_channel *chan, const char *data)
gi->category = (char *) gi + sizeof(*gi) + strlen(group) + 1;
strcpy(gi->category, category);
}
- AST_RWLIST_INSERT_TAIL(&groups, gi, list);
+ AST_RWLIST_INSERT_TAIL(&groups, gi, group_list);
} else {
res = -1;
}
@@ -1053,7 +1053,7 @@ int ast_app_group_get_count(const char *group, const char *category)
}
AST_RWLIST_RDLOCK(&groups);
- AST_RWLIST_TRAVERSE(&groups, gi, list) {
+ AST_RWLIST_TRAVERSE(&groups, gi, group_list) {
if (!strcasecmp(gi->group, group) && (ast_strlen_zero(category) || (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, category)))) {
count++;
}
@@ -1079,7 +1079,7 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category)
}
AST_RWLIST_RDLOCK(&groups);
- AST_RWLIST_TRAVERSE(&groups, gi, list) {
+ AST_RWLIST_TRAVERSE(&groups, gi, group_list) {
if (!regexec(&regexbuf, gi->group, 0, NULL, 0) && (ast_strlen_zero(category) || (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, category)))) {
count++;
}
@@ -1096,11 +1096,11 @@ int ast_app_group_update(struct ast_channel *old, struct ast_channel *new)
struct ast_group_info *gi = NULL;
AST_RWLIST_WRLOCK(&groups);
- AST_RWLIST_TRAVERSE_SAFE_BEGIN(&groups, gi, list) {
+ AST_RWLIST_TRAVERSE_SAFE_BEGIN(&groups, gi, group_list) {
if (gi->chan == old) {
gi->chan = new;
} else if (gi->chan == new) {
- AST_RWLIST_REMOVE_CURRENT(list);
+ AST_RWLIST_REMOVE_CURRENT(group_list);
ast_free(gi);
}
}
@@ -1115,9 +1115,9 @@ int ast_app_group_discard(struct ast_channel *chan)
struct ast_group_info *gi = NULL;
AST_RWLIST_WRLOCK(&groups);
- AST_RWLIST_TRAVERSE_SAFE_BEGIN(&groups, gi, list) {
+ AST_RWLIST_TRAVERSE_SAFE_BEGIN(&groups, gi, group_list) {
if (gi->chan == chan) {
- AST_RWLIST_REMOVE_CURRENT(list);
+ AST_RWLIST_REMOVE_CURRENT(group_list);
ast_free(gi);
}
}