[asterisk-commits] seanbright: trunk r137112 - /trunk/include/asterisk/channel.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Aug 10 16:10:05 CDT 2008


Author: seanbright
Date: Sun Aug 10 16:10:04 2008
New Revision: 137112

URL: http://svn.digium.com/view/asterisk?view=rev&rev=137112
Log:
Fix this again so we can compile with shadow warnings enabled and IMAP chosen
in voicemail.

Modified:
    trunk/include/asterisk/channel.h

Modified: trunk/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/channel.h?view=diff&rev=137112&r1=137111&r2=137112
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Sun Aug 10 16:10:04 2008
@@ -1510,16 +1510,16 @@
 }
 
 /*! \brief Helper function for migrating select to poll */
-static inline int ast_fdisset(struct pollfd *pfds, int fd, int max, int *start)
+static inline int ast_fdisset(struct pollfd *pfds, int fd, int maximum, int *start)
 {
 	int x;
-	int dummy=0;
+	int dummy = 0;
 
 	if (fd < 0)
 		return 0;
 	if (!start)
 		start = &dummy;
-	for (x = *start; x<max; x++)
+	for (x = *start; x < maximum; x++)
 		if (pfds[x].fd == fd) {
 			if (x == *start)
 				(*start)++;




More information about the asterisk-commits mailing list