]> git.alsa-project.org Git - alsa-lib.git/commitdiff
timer_query: make ops structure constant
authorClemens Ladisch <clemens@ladisch.de>
Mon, 10 Aug 2009 08:09:02 +0000 (10:09 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 10 Aug 2009 08:09:02 +0000 (10:09 +0200)
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>
src/timer/timer_local.h

index 19cadfe61a584ace6f5916ad5696e55c3c6cd0c7..8040b05cae190a600e2c5ef7f7bc2d36e465c699 100644 (file)
@@ -64,7 +64,7 @@ struct _snd_timer_query {
        snd_timer_type_t type;
        int mode;
        int poll_fd;
-       snd_timer_query_ops_t *ops;
+       const snd_timer_query_ops_t *ops;
        void *private_data;
 };
 #endif /* DOC_HIDDEN */