From f3dc8e2aa46a57e977932c35687bcf35a4da4076 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Mon, 10 Aug 2009 10:09:02 +0200 Subject: [PATCH] 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 --- src/timer/timer_local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.3