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:
@@ -29,7 +29,7 @@ typedef struct _Timer {
|
||||
int rate;
|
||||
} Timer;
|
||||
|
||||
Timer *timer_new(struct audio_format *af);
|
||||
Timer *timer_new(const struct audio_format *af);
|
||||
|
||||
void timer_free(Timer *timer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user