From: Takashi Sakamoto Date: Fri, 19 Jun 2020 11:53:09 +0000 (+0900) Subject: seq: supplement to use guint8 for the numerical ID of client X-Git-Tag: v0.1.0~18 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3f1d000e6a47dde0635e264a7d351d844ebe2e21;p=alsa-gobject.git seq: supplement to use guint8 for the numerical ID of client Fixes: 912236f0a415 ("seq: use guint8 for the numerical ID of client") Signed-off-by: Takashi Sakamoto --- diff --git a/src/seq/query.c b/src/seq/query.c index 57f7be5..6072b6d 100644 --- a/src/seq/query.c +++ b/src/seq/query.c @@ -172,14 +172,14 @@ void alsaseq_get_system_info(ALSASeqSystemInfo **system_info, GError **error) * SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT command for ALSA sequencer character * device. */ -void alsaseq_get_client_id_list(guint **entries, gsize *entry_count, +void alsaseq_get_client_id_list(guint8 **entries, gsize *entry_count, GError **error) { char *devnode; int my_id; struct snd_seq_system_info system_info = {0}; unsigned int count; - guint *list; + guint8 *list; unsigned int index; struct snd_seq_client_info client_info = {0}; int fd; diff --git a/src/seq/query.h b/src/seq/query.h index cd9cce0..41a5cfd 100644 --- a/src/seq/query.h +++ b/src/seq/query.h @@ -21,7 +21,7 @@ void alsaseq_get_seq_devnode(gchar **devnode, GError **error); void alsaseq_get_system_info(ALSASeqSystemInfo **system_info, GError **error); -void alsaseq_get_client_id_list(guint **entries, gsize *entry_count, +void alsaseq_get_client_id_list(guint8 **entries, gsize *entry_count, GError **error); void alsaseq_get_client_info(guint8 client_id, ALSASeqClientInfo **client_info,