mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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)++;
|
||||
|
Reference in New Issue
Block a user