mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
timer_query: make ops structure constant
The contents of the snd_timer_query_ops structure are not going to be changed, so we might as well declare is as constant. This change avoids a warning if some ops structure is actually defined as const. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
This commit is contained in:
parent
2905af225f
commit
f3dc8e2aa4
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ struct _snd_timer_query {
|
||||||
snd_timer_type_t type;
|
snd_timer_type_t type;
|
||||||
int mode;
|
int mode;
|
||||||
int poll_fd;
|
int poll_fd;
|
||||||
snd_timer_query_ops_t *ops;
|
const snd_timer_query_ops_t *ops;
|
||||||
void *private_data;
|
void *private_data;
|
||||||
};
|
};
|
||||||
#endif /* DOC_HIDDEN */
|
#endif /* DOC_HIDDEN */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue