From 812107391272943d7a9823d9203f32ae8db5a64d Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Sun, 9 May 2010 22:52:27 +0200 Subject: [PATCH] Make sure audacious-code compiles --- src/audacious.c | 3 ++- src/audacious.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/audacious.c b/src/audacious.c index 2d02453..49342e8 100644 --- a/src/audacious.c +++ b/src/audacious.c @@ -62,7 +62,7 @@ static audacious_t audacious_items; /* ----------------------------------------- * Conky update function for audacious data. * ----------------------------------------- */ -void update_audacious(void) +int update_audacious(void) { /* The worker thread is updating audacious_items array asynchronously * to the main conky thread. @@ -79,6 +79,7 @@ void update_audacious(void) timed_thread_lock(info.audacious.p_timed_thread); memcpy(&info.audacious.items, audacious_items, sizeof(audacious_items)); timed_thread_unlock(info.audacious.p_timed_thread); + return 0; } /* --------------------------------------------------------- diff --git a/src/audacious.h b/src/audacious.h index 0e64cde..3db8e51 100644 --- a/src/audacious.h +++ b/src/audacious.h @@ -60,7 +60,7 @@ int create_audacious_thread(void); int destroy_audacious_thread(void); /* Service routine for the conky main thread */ -void update_audacious(void); +int update_audacious(void); /* Thread functions */ void *audacious_thread_func(void *); -- 1.7.9.5