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:
@@ -65,7 +65,7 @@ typedef struct _ShoutData {
|
||||
Timer *timer;
|
||||
|
||||
/* just a pointer to audioOutput->outAudioFormat */
|
||||
struct audio_format *audioFormat;
|
||||
const struct audio_format *audioFormat;
|
||||
} ShoutData;
|
||||
|
||||
static ShoutData *newShoutData(void)
|
||||
|
||||
Reference in New Issue
Block a user