From a9b581f6c551e783030a8ce54008a772325f71b6 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Jan 2008 10:03:28 +0000 Subject: 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 --- src/interface.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/interface.c') 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; } -- cgit v1.2.3