[asterisk-commits] jpeeler: branch 1.6.2 r190066 - in /branches/1.6.2: ./ funcs/ include/asteris...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 22 16:18:45 CDT 2009


Author: jpeeler
Date: Wed Apr 22 16:18:40 2009
New Revision: 190066

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190066
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.2/   (props changed)
    branches/1.6.2/funcs/func_groupcount.c
    branches/1.6.2/include/asterisk/channel.h
    branches/1.6.2/main/app.c
    branches/1.6.2/main/cli.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/funcs/func_groupcount.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.2/funcs/func_groupcount.c?view=diff&rev=190066&r1=190065&r2=190066
==============================================================================
--- branches/1.6.2/funcs/func_groupcount.c (original)
+++ branches/1.6.2/funcs/func_groupcount.c Wed Apr 22 16:18:40 2009
@@ -107,7 +107,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)))
@@ -170,7 +170,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))
@@ -225,7 +225,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.2/include/asterisk/channel.h
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.2/include/asterisk/channel.h?view=diff&rev=190066&r1=190065&r2=190066
==============================================================================
--- branches/1.6.2/include/asterisk/channel.h (original)
+++ branches/1.6.2/include/asterisk/channel.h Wed Apr 22 16:18:40 2009
@@ -1761,7 +1761,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.2/main/app.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.2/main/app.c?view=diff&rev=190066&r1=190065&r2=190066
==============================================================================
--- branches/1.6.2/main/app.c (original)
+++ branches/1.6.2/main/app.c Wed Apr 22 16:18:40 2009
@@ -1014,9 +1014,9 @@
 	}
 
 	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 @@
 			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 @@
 	}
 
 	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 @@
 	}
 
 	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 @@
 	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 @@
 	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.2/main/cli.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.2/main/cli.c?view=diff&rev=190066&r1=190065&r2=190066
==============================================================================
--- branches/1.6.2/main/cli.c (original)
+++ branches/1.6.2/main/cli.c Wed Apr 22 16:18:40 2009
@@ -1439,7 +1439,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