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:
@ -512,15 +512,15 @@ int doIOForInterfaces(void)
|
|||||||
|
|
||||||
// Add fds for all registered IO handlers
|
// Add fds for all registered IO handlers
|
||||||
if( ioList ) {
|
if( ioList ) {
|
||||||
struct ioOps *i = ioList;
|
struct ioOps *o = ioList;
|
||||||
while( i ) {
|
while( o ) {
|
||||||
struct ioOps *current = i;
|
struct ioOps *current = o;
|
||||||
int fdnum;
|
int fdnum;
|
||||||
assert( current->fdset );
|
assert( current->fdset );
|
||||||
fdnum = current->fdset( &rfds, &wfds, &efds );
|
fdnum = current->fdset( &rfds, &wfds, &efds );
|
||||||
if( fdmax < fdnum )
|
if( fdmax < fdnum )
|
||||||
fdmax = fdnum;
|
fdmax = fdnum;
|
||||||
i = i->next;
|
o = o->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -531,12 +531,12 @@ int doIOForInterfaces(void)
|
|||||||
|
|
||||||
// Consume fds for all registered IO handlers
|
// Consume fds for all registered IO handlers
|
||||||
if( ioList ) {
|
if( ioList ) {
|
||||||
struct ioOps *i = ioList;
|
struct ioOps *o = ioList;
|
||||||
while( i ) {
|
while( o ) {
|
||||||
struct ioOps *current = i;
|
struct ioOps *current = o;
|
||||||
assert( current->consume );
|
assert( current->consume );
|
||||||
selret = current->consume( selret, &rfds, &wfds, &efds );
|
selret = current->consume( selret, &rfds, &wfds, &efds );
|
||||||
i = i->next;
|
o = o->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ void getConnections(fd_set * fds)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int getBoundPort()
|
int getBoundPort(void)
|
||||||
{
|
{
|
||||||
return boundPort;
|
return boundPort;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user