diff options
author | David Robillard <d@drobilla.net> | 2013-12-25 03:24:33 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-12-25 03:24:33 +0000 |
commit | d8f7e5c92f7e03bfd28cb137ce40536f9f36818f (patch) | |
tree | d938636c7cf27ff5b14d8b7121461f3e59c3ba06 /src/jalv.c | |
parent | 280527ada49e4763707ab861590ec30b5e57c854 (diff) | |
download | jalv-d8f7e5c92f7e03bfd28cb137ce40536f9f36818f.tar.gz jalv-d8f7e5c92f7e03bfd28cb137ce40536f9f36818f.tar.bz2 jalv-d8f7e5c92f7e03bfd28cb137ce40536f9f36818f.zip |
Fix more const-correctness violations.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5196 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/jalv.c')
-rw-r--r-- | src/jalv.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -527,8 +527,8 @@ jack_process_cb(jack_nframes_t nframes, void* data) } else if (ev.protocol == jalv->urids.atom_eventTransfer) { LV2_Evbuf_Iterator e = lv2_evbuf_end(port->evbuf); const LV2_Atom* const atom = (const LV2_Atom*)body; - lv2_evbuf_write(&e, nframes, 0, - atom->type, atom->size, LV2_ATOM_BODY(atom)); + lv2_evbuf_write(&e, nframes, 0, atom->type, atom->size, + LV2_ATOM_BODY_CONST(atom)); } else { fprintf(stderr, "error: Unknown control change protocol %d\n", ev.protocol); @@ -733,7 +733,7 @@ jalv_ui_write(SuilController controller, const LV2_Atom* atom = (const LV2_Atom*)buffer; char* str = sratom_to_turtle( jalv->sratom, &jalv->unmap, "jalv:", NULL, NULL, - atom->type, atom->size, LV2_ATOM_BODY(atom)); + atom->type, atom->size, LV2_ATOM_BODY_CONST(atom)); printf("\n## UI => Plugin (%u bytes) ##\n%s\n", atom->size, str); free(str); } @@ -1111,7 +1111,7 @@ main(int argc, char** argv) && lilv_plugin_has_extension_data(jalv.plugin, jalv.nodes.work_interface)) { jalv_worker_init( &jalv, &jalv.worker, - (LV2_Worker_Interface*)lilv_instance_get_extension_data( + (const LV2_Worker_Interface*)lilv_instance_get_extension_data( jalv.instance, LV2_WORKER__interface)); } |