diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-08-29 19:57:24 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-08-29 19:57:24 +0000 |
commit | 7a6393d8de72b73ac8080deb3e41588d7d27c817 (patch) | |
tree | 46e4a9fb6eecf9f041cb4d3bc3b26b29e9f3f164 /main/channel.c | |
parent | 6e2d8c06ea740a1cd04faa2f8b7f8869fdb90466 (diff) |
Fix theoretical compile error with HAVE_EPOLL.
Really shows how much epoll is used since it had not been reported yet.
........
Merged revisions 371893 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@371894 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index 32ce57ec5..872e844d8 100644 --- a/main/channel.c +++ b/main/channel.c @@ -986,7 +986,7 @@ __ast_channel_alloc_ap(int needqueue, int state, const char *cid_num, const char ast_channel_internal_fd_clear_all(tmp); #ifdef HAVE_EPOLL - ast_channel_epfd(tmp) = epoll_create(25); + ast_channel_epfd_set(tmp, epoll_create(25)); #endif if (!(schedctx = ast_sched_context_create())) { @@ -1217,7 +1217,7 @@ struct ast_channel *ast_dummy_channel_alloc(void) ast_channel_internal_alertpipe_clear(tmp); ast_channel_internal_fd_clear_all(tmp); #ifdef HAVE_EPOLL - ast_channel_epfd(tmp) = -1; + ast_channel_epfd_set(tmp, -1); #endif headp = ast_channel_varshead(tmp); |