diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-01-03 10:03:28 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-01-03 10:03:28 +0000 |
commit | a9b581f6c551e783030a8ce54008a772325f71b6 (patch) | |
tree | 80d2d1fa10fee762e5bbbec05232825142ac8cb9 /src/interface.c | |
parent | 776ccc89ad20f4532a4f28d98be775c0e1ba66aa (diff) | |
download | mpd-a9b581f6c551e783030a8ce54008a772325f71b6.tar.gz mpd-a9b581f6c551e783030a8ce54008a772325f71b6.tar.xz mpd-a9b581f6c551e783030a8ce54008a772325f71b6.zip |
zeroconf: reformat (with mpd-indent.sh + manual tweaks)
Also, lower the impact of compiling this w/o zeroconf by
making the init/teardown functions static no-ops.
Eventually, we should separate the Bonjour and Avahi
code into separate files and have callbacks registered
for each one, avoiding the #ifdef mess we have now...
git-svn-id: https://svn.musicpd.org/mpd/trunk@7132 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/interface.c')
-rw-r--r-- | src/interface.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/interface.c b/src/interface.c index 5b754b504..76770a15f 100644 --- a/src/interface.c +++ b/src/interface.c @@ -811,23 +811,23 @@ static void printInterfaceOutBuffer(Interface * interface) } /* From ioops.h: */ -void registerIO( struct ioOps *ops ) +void registerIO(struct ioOps *ops) { - assert( ops != NULL ); + assert(ops != NULL); ops->next = ioList; ioList = ops; ops->prev = NULL; - if( ops->next ) + if (ops->next) ops->next->prev = ops; } -void deregisterIO( struct ioOps *ops ) +void deregisterIO(struct ioOps *ops) { - assert( ops != NULL ); + assert(ops != NULL); - if( ioList == ops ) + if (ioList == ops) ioList = ops->next; - else if( ops->prev != NULL ) + else if (ops->prev != NULL) ops->prev->next = ops->next; } |