diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-01-14 02:08:20 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-01-14 02:08:20 +0000 |
commit | 8a1b85c1a546418c95f12ad2bd6427c5244fdfbb (patch) | |
tree | 3dbd0d88b132b16db73324525d1e0c3717f0cdeb | |
parent | 6b9fc5683953b06e7838520333539994d85e009b (diff) | |
download | mpd-8a1b85c1a546418c95f12ad2bd6427c5244fdfbb.tar.gz mpd-8a1b85c1a546418c95f12ad2bd6427c5244fdfbb.tar.xz mpd-8a1b85c1a546418c95f12ad2bd6427c5244fdfbb.zip |
avahi: more sparse fixes (-Wshadow, non-ANSI declarations)
git-svn-id: https://svn.musicpd.org/mpd/trunk@5248 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/interface.c | 16 | ||||
-rw-r--r-- | src/listen.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/interface.c b/src/interface.c index 1e6fb4445..4c2190783 100644 --- a/src/interface.c +++ b/src/interface.c @@ -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; } } diff --git a/src/listen.c b/src/listen.c index 4caf2dc2a..6a8d55388 100644 --- a/src/listen.c +++ b/src/listen.c @@ -270,7 +270,7 @@ void getConnections(fd_set * fds) } } -int getBoundPort() +int getBoundPort(void) { return boundPort; } |