]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
seq: event_data_queue: use 'not a variable length array type' for bytes argument
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 22 Apr 2020 02:51:46 +0000 (11:51 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Wed, 22 Apr 2020 07:46:49 +0000 (16:46 +0900)
The type of bytes argument is fixed-sized array.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/seq/event-data-queue.c
src/seq/event-data-queue.h

index ada690a4d71e021144a45f38f2a4f516161b5d90..295699a83ef23aaf04eb8a71d40bfb4c16a0d706 100644 (file)
@@ -182,7 +182,7 @@ void alsaseq_event_data_queue_set_quadlet_param(ALSASeqEventDataQueue *self,
  * Get eight bytes as param of the queue event.
  */
 void alsaseq_event_data_queue_get_byte_param(ALSASeqEventDataQueue *self,
-                                             const guint8 **bytes)
+                                             const guint8 *bytes[8])
 {
     *bytes = self->param.d8;
 }
index d2f810b79b0bd3ce257578001e48187fb6f55fcb..33371e6b517535cb78d32dc3d04d7f27c1902f8d 100644 (file)
@@ -48,7 +48,7 @@ void alsaseq_event_data_queue_set_quadlet_param(ALSASeqEventDataQueue *self,
                                                 const guint32 quadlets[2]);
 
 void alsaseq_event_data_queue_get_byte_param(ALSASeqEventDataQueue *self,
-                                             const guint8 **bytes);
+                                             const guint8 *bytes[8]);
 void alsaseq_event_data_queue_set_byte_param(ALSASeqEventDataQueue *self,
                                              const guint8 bytes[8]);