summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-08-08 22:41:58 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-08-08 22:41:58 +0200
commit7d43d386d03047f4f1a3b5abbb4f4ecf81eb650b (patch)
tree4700065668eca30e81165eb128cc07fe6513119f
parent43c8e030dea4d7b2e3e298cebe6148aeaf87ec74 (diff)
vumeter: cast structs to void-pointer
-rw-r--r--modules/vumeter/vumeter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/vumeter/vumeter.c b/modules/vumeter/vumeter.c
index 4a29295..827bde2 100644
--- a/modules/vumeter/vumeter.c
+++ b/modules/vumeter/vumeter.c
@@ -157,7 +157,7 @@ static int decode_update(struct aufilt_dec_st **stp, void **ctx,
static int encode(struct aufilt_enc_st *st, int16_t *sampv, size_t *sampc)
{
- struct vumeter_enc *vu = (struct vumeter_enc *)st;
+ struct vumeter_enc *vu = (void *)st;
vu->avg_rec = calc_avg_s16(sampv, *sampc);
vu->started = true;
@@ -168,7 +168,7 @@ static int encode(struct aufilt_enc_st *st, int16_t *sampv, size_t *sampc)
static int decode(struct aufilt_dec_st *st, int16_t *sampv, size_t *sampc)
{
- struct vumeter_dec *vu = (struct vumeter_dec *)st;
+ struct vumeter_dec *vu = (void *)st;
vu->avg_play = calc_avg_s16(sampv, *sampc);
vu->started = true;