]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
audiod: Change return value of open_current_receiver() to void.
authorAndre Noll <maan@systemlinux.org>
Mon, 9 Mar 2009 21:43:04 +0000 (22:43 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 9 Mar 2009 21:43:04 +0000 (22:43 +0100)
Its single caller ignores the return value.

audiod.c

index 3194501bfc7e6e0a5e687842be70a57cb84e76b2..d771fa68b719edd33b228f94eec0d6b542bbb7be 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -474,20 +474,20 @@ static int receiver_running(int format)
        return 0;
 }
 
        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)
 {
        struct timeval diff;
        int cafn = stat_task->current_audio_format_num;
 
        if (cafn < 0 || !stat_task->ct)
-               return 0;
+               return;
        if (receiver_running(cafn))
        if (receiver_running(cafn))
-               return 0;
+               return;
        if (tv_diff(now, &afi[cafn].restart_barrier, &diff) < 0) {
                s->timeout = diff;
        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)
 }
 
 static unsigned compute_time_diff(const struct timeval *status_time)