diff options
Diffstat (limited to 'src/socket')
-rw-r--r-- | src/socket/SocketReader.cpp | 2 | ||||
-rw-r--r-- | src/socket/SocketWriter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/socket/SocketReader.cpp b/src/socket/SocketReader.cpp index 9d28b405..7599038e 100644 --- a/src/socket/SocketReader.cpp +++ b/src/socket/SocketReader.cpp @@ -168,7 +168,7 @@ SocketReader::_run() sratom_read(sratom, &forge, world->c_obj(), model, _msg_node); // Call _iface methods based on atom content - ar.write((LV2_Atom*)chunk.buf); + ar.write((const LV2_Atom*)chunk.buf); // Reset everything for the next iteration chunk.len = 0; diff --git a/src/socket/SocketWriter.cpp b/src/socket/SocketWriter.cpp index ae815aea..8fa5ee05 100644 --- a/src/socket/SocketWriter.cpp +++ b/src/socket/SocketWriter.cpp @@ -80,7 +80,7 @@ bool SocketWriter::write(const LV2_Atom* msg) { sratom_write(_sratom, &_map.urid_unmap_feature()->urid_unmap, 0, - NULL, NULL, msg->type, msg->size, LV2_ATOM_BODY(msg)); + NULL, NULL, msg->type, msg->size, LV2_ATOM_BODY_CONST(msg)); serd_writer_finish(_writer); return true; } |