From: Clemens Ladisch Date: Mon, 10 Aug 2009 08:09:02 +0000 (+0200) Subject: timer_query: make ops structure constant X-Git-Tag: v1.0.21~5 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f3dc8e2aa46a57e977932c35687bcf35a4da4076;p=alsa-lib.git 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 --- diff --git a/src/timer/timer_local.h b/src/timer/timer_local.h index 19cadfe6..8040b05c 100644 --- a/src/timer/timer_local.h +++ b/src/timer/timer_local.h @@ -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 */