avahi: more sparse fixes (-Wshadow, non-ANSI declarations)

git-svn-id: https://svn.musicpd.org/mpd/trunk@5248 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong 2007-01-14 02:08:20 +00:00
parent 6b9fc56839
commit 8a1b85c1a5
2 changed files with 9 additions and 9 deletions

View File

@ -512,15 +512,15 @@ int doIOForInterfaces(void)
// Add fds for all registered IO handlers
if( ioList ) {
struct ioOps *i = ioList;
while( i ) {
struct ioOps *current = i;
struct ioOps *o = ioList;
while( o ) {
struct ioOps *current = o;
int fdnum;
assert( current->fdset );
fdnum = current->fdset( &rfds, &wfds, &efds );
if( fdmax < fdnum )
fdmax = fdnum;
i = i->next;
o = o->next;
}
}
@ -531,12 +531,12 @@ int doIOForInterfaces(void)
// Consume fds for all registered IO handlers
if( ioList ) {
struct ioOps *i = ioList;
while( i ) {
struct ioOps *current = i;
struct ioOps *o = ioList;
while( o ) {
struct ioOps *current = o;
assert( current->consume );
selret = current->consume( selret, &rfds, &wfds, &efds );
i = i->next;
o = o->next;
}
}

View File

@ -270,7 +270,7 @@ void getConnections(fd_set * fds)
}
}
int getBoundPort()
int getBoundPort(void)
{
return boundPort;
}