summaryrefslogtreecommitdiff
path: root/modules/mpa/decode.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-05-17 15:14:31 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-05-17 15:14:31 +0200
commit9cbf96cf66a321c7cf519b5d9e7812e9ca80e242 (patch)
treeef495c4d29d705e8d77c3e17bcde54a9c68e11ca /modules/mpa/decode.c
parentae437d00b6b62d7a84f666b2c3a01e0e3967bf88 (diff)
mpa: fix warning on osx
Diffstat (limited to 'modules/mpa/decode.c')
-rw-r--r--modules/mpa/decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mpa/decode.c b/modules/mpa/decode.c
index aadf43c..7dfaccb 100644
--- a/modules/mpa/decode.c
+++ b/modules/mpa/decode.c
@@ -125,9 +125,9 @@ int mpa_decode_frm(struct audec_state *ads, int16_t *sampv, size_t *sampc,
if (!ads || !sampv || !sampc || !buf || len<=4)
return EINVAL;
- if (*(uint32_t*)buf != 0) {
+ if (*(uint32_t*)(void *)buf != 0) {
error("MPA dec header is not zero %08X, not supported yet\n",
- *(uint32_t*)buf);
+ *(uint32_t*)(void *)buf);
return EPROTO;
}