[asterisk-commits] jpeeler: branch 1.6.0 r190059 - in /branches/1.6.0: ./ funcs/ include/asteris...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 22 16:17:33 CDT 2009
Author: jpeeler
Date: Wed Apr 22 16:17:29 2009
New Revision: 190059
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190059
Log:
Merged revisions 190057 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r190057 | jpeeler | 2009-04-22 16:15:55 -0500 (Wed, 22 Apr 2009) | 9 lines
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
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/funcs/func_groupcount.c
branches/1.6.0/include/asterisk/channel.h
branches/1.6.0/main/app.c
branches/1.6.0/main/cli.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/funcs/func_groupcount.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/funcs/func_groupcount.c?view=diff&rev=190059&r1=190058&r2=190059
==============================================================================
--- branches/1.6.0/funcs/func_groupcount.c (original)
+++ branches/1.6.0/funcs/func_groupcount.c Wed Apr 22 16:17:29 2009
@@ -45,7 +45,7 @@
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)))
@@ -115,7 +115,7 @@
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))
@@ -171,7 +171,7 @@
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)) {
Modified: branches/1.6.0/include/asterisk/channel.h
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/include/asterisk/channel.h?view=diff&rev=190059&r1=190058&r2=190059
==============================================================================
--- branches/1.6.0/include/asterisk/channel.h (original)
+++ branches/1.6.0/include/asterisk/channel.h Wed Apr 22 16:17:29 2009
@@ -1711,7 +1711,7 @@
struct ast_channel *chan;
char *category;
char *group;
- AST_LIST_ENTRY(ast_group_info) list;
+ AST_LIST_ENTRY(ast_group_info) group_list;
};
Modified: branches/1.6.0/main/app.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/main/app.c?view=diff&rev=190059&r1=190058&r2=190059
==============================================================================
--- branches/1.6.0/main/app.c (original)
+++ branches/1.6.0/main/app.c Wed Apr 22 16:17:29 2009
@@ -903,9 +903,9 @@
len += strlen(category) + 1;
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;
}
@@ -922,7 +922,7 @@
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;
}
@@ -941,7 +941,7 @@
return 0;
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++;
}
@@ -964,7 +964,7 @@
return 0;
AST_RWLIST_RDLOCK(&groups);
- AST_RWLIST_TRAVERSE(&groups, gi, list) {
+ AST_RWLIST_TRAVERSE(&groups, gi, group_list) {
if (!regexec(®exbuf, gi->group, 0, NULL, 0) && (ast_strlen_zero(category) || (!ast_strlen_zero(gi->category) && !strcasecmp(gi->category, category))))
count++;
}
@@ -980,11 +980,11 @@
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);
}
}
@@ -999,9 +999,9 @@
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);
}
}
Modified: branches/1.6.0/main/cli.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/main/cli.c?view=diff&rev=190059&r1=190058&r2=190059
==============================================================================
--- branches/1.6.0/main/cli.c (original)
+++ branches/1.6.0/main/cli.c Wed Apr 22 16:17:29 2009
@@ -1162,7 +1162,7 @@
ast_cli(a->fd, FORMAT_STRING, gi->chan->name, gi->group, (ast_strlen_zero(gi->category) ? "(default)" : gi->category));
numchans++;
}
- gi = AST_LIST_NEXT(gi, list);
+ gi = AST_LIST_NEXT(gi, group_list);
}
ast_app_group_list_unlock();
More information about the asterisk-commits
mailing list