Fix some warnings in audio code causing by fixing the prototypes of mq_send() and mq_receive()

This commit is contained in:
Gregory Nutt
2015-02-09 12:50:04 -06:00
parent 8a28f7fc5d
commit b285162e79
4 changed files with 19 additions and 12 deletions
+2 -2
View File
@@ -716,7 +716,7 @@ static inline void audio_dequeuebuffer(FAR struct audio_upperhalf_s *upper,
msg.session = session;
#endif
apb->flags |= AUDIO_APB_DEQUEUED;
mq_send(upper->usermq, &msg, sizeof(msg),
mq_send(upper->usermq, (FAR const char *)&msg, sizeof(msg),
CONFIG_AUDIO_BUFFER_DEQUEUE_PRIO);
}
}
@@ -754,7 +754,7 @@ static inline void audio_complete(FAR struct audio_upperhalf_s *upper,
#ifdef CONFIG_AUDIO_MULTI_SESSION
msg.session = session;
#endif
mq_send(upper->usermq, &msg, sizeof(msg),
mq_send(upper->usermq, (FAR const char *)&msg, sizeof(msg),
CONFIG_AUDIO_BUFFER_DEQUEUE_PRIO);
}
}