From 0f83de10963c9e6bf5f7398abb7edaa79fd91ed6 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 22 Apr 2020 11:48:07 +0900 Subject: [PATCH] seq: event_data_queue: use 'not a variable length array type' for skew argument The type of skew argument is fixed-sized array. Signed-off-by: Takashi Sakamoto --- src/seq/event-data-queue.c | 2 +- src/seq/event-data-queue.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/seq/event-data-queue.c b/src/seq/event-data-queue.c index 0622106..ada690a 100644 --- a/src/seq/event-data-queue.c +++ b/src/seq/event-data-queue.c @@ -123,7 +123,7 @@ void alsaseq_event_data_queue_set_position_param(ALSASeqEventDataQueue *self, * Get the skew as param of the queue event. */ void alsaseq_event_data_queue_get_skew_param(ALSASeqEventDataQueue *self, - const guint **skew) + const guint *skew[2]) { // MEMO: I wish 32-bit storage size is aligned to 32 bit offset in all of // supported ABIs. diff --git a/src/seq/event-data-queue.h b/src/seq/event-data-queue.h index d50f934..d2f810b 100644 --- a/src/seq/event-data-queue.h +++ b/src/seq/event-data-queue.h @@ -38,7 +38,7 @@ void alsaseq_event_data_queue_set_position_param(ALSASeqEventDataQueue *self, guint position); void alsaseq_event_data_queue_get_skew_param(ALSASeqEventDataQueue *self, - const guint **skew); + const guint *skew[2]); void alsaseq_event_data_queue_set_skew_param(ALSASeqEventDataQueue *self, const guint skew[2]); -- 2.47.3