Fix this again so we can compile with shadow warnings enabled and IMAP chosen

in voicemail.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2008-08-10 21:10:04 +00:00
parent 74bf61579f
commit 7a636521b1

View File

@@ -1510,16 +1510,16 @@ static inline int ast_add_fd(struct pollfd *pfd, int fd)
}
/*! \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)++;