diff options
author | David Robillard <d@drobilla.net> | 2012-08-09 02:06:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-09 02:06:27 +0000 |
commit | 2a003020dc3b094df7eaa9b2f2cde53e97516fa8 (patch) | |
tree | 8ca0dc8e0030b06eaa5d1aea630eb64e4bfd67bc /plugins | |
parent | e6e94966b45ab25c8852445ee05869de879819df (diff) | |
download | lv2-2a003020dc3b094df7eaa9b2f2cde53e97516fa8.tar.xz |
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/eg-sampler.lv2/sampler.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |