[asterisk-commits] rmudgett: branch 11 r371893 - /branches/11/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 29 14:56:18 CDT 2012


Author: rmudgett
Date: Wed Aug 29 14:56:14 2012
New Revision: 371893

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=371893
Log:
Fix theoretical compile error with HAVE_EPOLL.

Really shows how much epoll is used since it had not been reported yet.

Modified:
    branches/11/main/channel.c

Modified: branches/11/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/channel.c?view=diff&rev=371893&r1=371892&r2=371893
==============================================================================
--- branches/11/main/channel.c (original)
+++ branches/11/main/channel.c Wed Aug 29 14:56:14 2012
@@ -986,7 +986,7 @@
 	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 @@
 	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);




More information about the asterisk-commits mailing list