Commit 8a1b85c1 authored by Eric Wong's avatar Eric Wong

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

git-svn-id: https://svn.musicpd.org/mpd/trunk@5248 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 6b9fc568
...@@ -512,15 +512,15 @@ int doIOForInterfaces(void) ...@@ -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) ...@@ -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) ...@@ -270,7 +270,7 @@ void getConnections(fd_set * fds)
} }
} }
int getBoundPort() int getBoundPort(void)
{ {
return boundPort; return boundPort;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment