mirror of
https://github.com/bluekitchen/btstack.git
synced 2024-12-26 00:16:08 +00:00
posix: fix warnings
This commit is contained in:
parent
5b67487b54
commit
c1b6583a19
@ -192,7 +192,8 @@ int wav_reader_open(const char * filepath){
|
||||
}
|
||||
|
||||
uint8_t buf[40];
|
||||
fread(buf, 1, sizeof(buf), wav_reader_file);
|
||||
size_t ret = fread(buf, 1, sizeof(buf), wav_reader_file);
|
||||
btstack_assert( ret == sizeof(buf) );
|
||||
|
||||
wav_reader_state.num_channels = (uint8_t) little_endian_read_16(buf, 22);
|
||||
if ((wav_reader_state.num_channels < 1) || (wav_reader_state.num_channels > 2)) {
|
||||
|
Loading…
Reference in New Issue
Block a user