aboutsummaryrefslogtreecommitdiff
path: root/src/timer.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-01-26 12:46:21 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-26 12:46:21 +0000
commit07adb14e3c4daa8b1e6ebc69e54128b38b014d30 (patch)
tree7d22b4b2eb31a9bf46cf648731fe1370005ab1c9 /src/timer.c
parent28008e697720bb2b11989bb887eb468b91409b1a (diff)
fixed -Wshadow warnings
Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7143 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/timer.c')
-rw-r--r--src/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timer.c b/src/timer.c
index 04a6f23c..29c15eab 100644
--- a/src/timer.c
+++ b/src/timer.c
@@ -67,11 +67,11 @@ void timer_add(Timer *timer, int size)
void timer_sync(Timer *timer)
{
- int64_t sleep;
+ int64_t sleep_duration;
assert(timer->started);
- sleep = timer->time - now();
- if (sleep > 0)
- my_usleep(sleep);
+ sleep_duration = timer->time - now();
+ if (sleep_duration > 0)
+ my_usleep(sleep_duration);
}