summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt O'Gorman <mogorman@digium.com>2006-04-03 19:42:26 +0000
committerMatt O'Gorman <mogorman@digium.com>2006-04-03 19:42:26 +0000
commit3112b3b49f65895d4541ecb54bbb3b1f2ed3953a (patch)
tree784383339f0f0da8f543c1883dff100651491eaf
parenta096fbd87df8dbd8c78adb5be94a6e1e9d175e1e (diff)
list word cant be used with g++ and causes problems
with h323. patch from bug 6446, renames list to chan_list git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channel.c12
-rw-r--r--include/asterisk/channel.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/channel.c b/channel.c
index e392c3a1a..a30f1fa5b 100644
--- a/channel.c
+++ b/channel.c
@@ -333,7 +333,7 @@ void ast_begin_shutdown(int hangup)
shutting_down = 1;
if (hangup) {
AST_LIST_LOCK(&channels);
- AST_LIST_TRAVERSE(&channels, c, list)
+ AST_LIST_TRAVERSE(&channels, c, chan_list)
ast_softhangup(c, AST_SOFTHANGUP_SHUTDOWN);
AST_LIST_UNLOCK(&channels);
}
@@ -345,7 +345,7 @@ int ast_active_channels(void)
struct ast_channel *c;
int cnt = 0;
AST_LIST_LOCK(&channels);
- AST_LIST_TRAVERSE(&channels, c, list)
+ AST_LIST_TRAVERSE(&channels, c, chan_list)
cnt++;
AST_LIST_UNLOCK(&channels);
return cnt;
@@ -682,7 +682,7 @@ struct ast_channel *ast_channel_alloc(int needqueue)
tmp->tech = &null_tech;
AST_LIST_LOCK(&channels);
- AST_LIST_INSERT_HEAD(&channels, tmp, list);
+ AST_LIST_INSERT_HEAD(&channels, tmp, chan_list);
AST_LIST_UNLOCK(&channels);
return tmp;
}
@@ -816,7 +816,7 @@ static struct ast_channel *channel_find_locked(const struct ast_channel *prev,
for (retries = 0; retries < 10; retries++) {
AST_LIST_LOCK(&channels);
- AST_LIST_TRAVERSE(&channels, c, list) {
+ AST_LIST_TRAVERSE(&channels, c, chan_list) {
if (!prev) {
/* want head of list */
if (!name && !exten)
@@ -845,7 +845,7 @@ static struct ast_channel *channel_find_locked(const struct ast_channel *prev,
break;
}
} else if (c == prev) { /* found, return c->next */
- c = AST_LIST_NEXT(c, list);
+ c = AST_LIST_NEXT(c, chan_list);
break;
}
}
@@ -952,7 +952,7 @@ void ast_channel_free(struct ast_channel *chan)
headp=&chan->varshead;
AST_LIST_LOCK(&channels);
- AST_LIST_REMOVE(&channels, chan, list);
+ AST_LIST_REMOVE(&channels, chan, chan_list);
/* Lock and unlock the channel just to be sure nobody
has it locked still */
ast_mutex_lock(&chan->lock);
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 9fcc4b133..44f70aa1e 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -424,7 +424,7 @@ struct ast_channel {
struct ast_channel_spy_list *spies;
/*! For easy linking */
- AST_LIST_ENTRY(ast_channel) list;
+ AST_LIST_ENTRY(ast_channel) chan_list;
};
/* \defgroup chanprop Channel tech properties: