From c85f9ed7ddaffc06fac9d2517c3a5d010bc5fce7 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Tue, 5 May 2009 16:08:49 +0200 Subject: [PATCH] Move main event base extern declaration to mdns_avahi.c where it's used --- src/daapd.h | 3 --- src/mdns_avahi.c | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/daapd.h b/src/daapd.h index 759859c8..ccde6bc7 100644 --- a/src/daapd.h +++ b/src/daapd.h @@ -56,7 +56,4 @@ #endif -/* Event bases */ -extern struct event_base *evbase_main; - #endif /* _DAAPD_H_ */ diff --git a/src/mdns_avahi.c b/src/mdns_avahi.c index 560f76b7..37897b18 100644 --- a/src/mdns_avahi.c +++ b/src/mdns_avahi.c @@ -37,6 +37,10 @@ #include "err.h" #include "mdns_avahi.h" + +/* Main event base, from main.c */ +extern struct event_base *evbase_main; + static AvahiClient *mdns_client = NULL; static AvahiEntryGroup *mdns_group = NULL;