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:
Clemens Ladisch 2009-08-10 10:09:02 +02:00
parent 2905af225f
commit f3dc8e2aa4

View file

@ -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 */