audiod: Change return value of open_current_receiver() to void.
[paraslash.git] / audiod.c
index 3194501..d771fa6 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -474,20 +474,20 @@ static int receiver_running(int format)
        return 0;
 }
 
-static int open_current_receiver(struct sched *s)
+static void open_current_receiver(struct sched *s)
 {
        struct timeval diff;
        int cafn = stat_task->current_audio_format_num;
 
        if (cafn < 0 || !stat_task->ct)
-               return 0;
+               return;
        if (receiver_running(cafn))
-               return 0;
+               return;
        if (tv_diff(now, &afi[cafn].restart_barrier, &diff) < 0) {
                s->timeout = diff;
-               return 0;
+               return;
        }
-       return open_receiver(cafn) < 0? 0 : 1;
+       open_receiver(cafn);
 }
 
 static unsigned compute_time_diff(const struct timeval *status_time)