From: Andre Noll Date: Sun, 2 Feb 2014 19:43:55 +0000 (+0100) Subject: audiod: Make compute_time_diff() return void. X-Git-Tag: v0.5.2~6^2~2 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;ds=sidebyside;h=67d6243694e36deb43eb8bf246871d3e266b1cb2;p=paraslash.git audiod: Make compute_time_diff() return void. Its single caller does not care about the return value. --- diff --git a/audiod.c b/audiod.c index 1d74fb0f..ddbe9d8b 100644 --- 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; @@ -650,7 +650,7 @@ static unsigned compute_time_diff(const struct timeval *status_time) const int time_smooth = 5; if (!status_time) - return count; + return; 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 +680,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)