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
This commit is contained in:
committed by
Eric Wong
parent
28008e6977
commit
07adb14e3c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user