diff options
author | Max Kellermann <max@duempel.org> | 2008-09-09 10:01:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-09 10:01:29 +0200 |
commit | 182746b95c84d5e742b82d662f4c3321250b4e60 (patch) | |
tree | 0914168c239a3c1eae5eade9949642cef089cd58 /src/timer.c | |
parent | 35494158c8608525a38457bbf3412d19ae18e845 (diff) |
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.
Diffstat (limited to 'src/timer.c')
-rw-r--r-- | src/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer.c b/src/timer.c index 0d8f07f5c..f917cda73 100644 --- a/src/timer.c +++ b/src/timer.c @@ -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; |