mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
test: clean driver_audio_test (void *) cast
Drop unnecessary casts in driver_audio_test to silence compiler warnings and improve code clarity. Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
This commit is contained in:
parent
4df2ce98aa
commit
8afe3c0645
1 changed files with 1 additions and 1 deletions
|
|
@ -742,7 +742,7 @@ static int audio_test_setup(FAR void **audio_state)
|
|||
attr.mq_flags = 0;
|
||||
|
||||
snprintf(state->mqname, sizeof(state->mqname), "/tmp/%p",
|
||||
((void *)state));
|
||||
state);
|
||||
|
||||
state->mq = mq_open(state->mqname, O_RDWR | O_CREAT, 0644, &attr);
|
||||
assert_false(state->mq < 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue