timer: constant pointers

The audio_format argument to timer_new() should be constant, because
it is not modified.  The same is true for ShoutData.audioFormat.
This commit is contained in:
Max Kellermann
2008-09-09 10:01:29 +02:00
parent 35494158c8
commit 182746b95c
3 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ static uint64_t now(void)
return ((uint64_t)tv.tv_sec * 1000000) + tv.tv_usec;
}
Timer *timer_new(struct audio_format *af)
Timer *timer_new(const struct audio_format *af)
{
Timer *timer;