From 2a003020dc3b094df7eaa9b2f2cde53e97516fa8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Aug 2012 02:06:27 +0000 Subject: Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes. --- plugins/eg-sampler.lv2/sampler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/eg-sampler.lv2') diff --git a/plugins/eg-sampler.lv2/sampler.c b/plugins/eg-sampler.lv2/sampler.c index e837517..a94518b 100644 --- a/plugins/eg-sampler.lv2/sampler.c +++ b/plugins/eg-sampler.lv2/sampler.c @@ -197,15 +197,15 @@ work(LV2_Handle instance, uint32_t size, const void* data) { - Sampler* self = (Sampler*)instance; - LV2_Atom* atom = (LV2_Atom*)data; + Sampler* self = (Sampler*)instance; + const LV2_Atom* atom = (const LV2_Atom*)data; if (atom->type == self->uris.eg_freeSample) { /* Free old sample */ SampleMessage* msg = (SampleMessage*)data; free_sample(self, msg->sample); } else { /* Handle set message (load sample). */ - LV2_Atom_Object* obj = (LV2_Atom_Object*)data; + const LV2_Atom_Object* obj = (const LV2_Atom_Object*)data; /* Get file path from message */ const LV2_Atom* file_path = read_set_file(&self->uris, obj); -- cgit v1.2.1