diff --git a/include/modules/meta/base.inl b/include/modules/meta/base.inl index 9b6899ad..ffbe9250 100644 --- a/include/modules/meta/base.inl +++ b/include/modules/meta/base.inl @@ -1,3 +1,4 @@ +#pragma once #include #include "components/builder.hpp" diff --git a/src/ipc/encoder.cpp b/src/ipc/encoder.cpp index 905be07e..87cbd915 100644 --- a/src/ipc/encoder.cpp +++ b/src/ipc/encoder.cpp @@ -11,11 +11,11 @@ namespace ipc { size_t total_size = HEADER_SIZE + payload.size(); std::vector data(total_size); - auto* header = reinterpret_cast(data.data()); - std::copy(ipc::MAGIC.begin(), ipc::MAGIC.end(), header->s.magic); - header->s.version = ipc::VERSION; - header->s.size = payload.size(); - header->s.type = type; + auto* msg_header = reinterpret_cast(data.data()); + std::copy(MAGIC.begin(), MAGIC.end(), msg_header->s.magic); + msg_header->s.version = VERSION; + msg_header->s.size = payload.size(); + msg_header->s.type = type; std::copy(payload.begin(), payload.end(), data.begin() + HEADER_SIZE); return data;