]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod.c
build: Don't link with -lreadline if readline was not found.
[paraslash.git] / audiod.c
index 1d74fb0fa223c911ee5412166e9cd289b2cc4d9c..e207c7586625dbb49595cb85d992284f157e3d72 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -641,7 +641,7 @@ static bool must_start_decoder(void)
        return true;
 }
 
-static unsigned compute_time_diff(const struct timeval *status_time)
+static void compute_time_diff(const struct timeval *status_time)
 {
        struct timeval tmp, diff;
        static unsigned count;
@@ -649,8 +649,6 @@ static unsigned compute_time_diff(const struct timeval *status_time)
        const struct timeval max_deviation = {0, 500 * 1000};
        const int time_smooth = 5;
 
-       if (!status_time)
-               return count;
        sign = tv_diff(status_time, now, &diff);
 //             PARA_NOTICE_LOG("%s: sign = %i, sa_time_diff_sign = %i\n", __func__,
 //                     sign, sa_time_diff_sign);
@@ -680,7 +678,6 @@ static unsigned compute_time_diff(const struct timeval *status_time)
        );
 out:
        stat_task->sa_time_diff_sign = sa_time_diff_sign;
-       return count;
 }
 
 static int update_item(int itemnum, char *buf)