0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 20:58:51 +02:00

ircd::mapi: Remove linkage of MAGIC value.

This commit is contained in:
Jason Volk 2017-03-17 17:45:43 -07:00
parent e64ca2827d
commit 9c137d7c50
2 changed files with 7 additions and 7 deletions

View file

@ -34,13 +34,13 @@ const char *const header_symbol_name
"IRCD_MODULE"
};
constexpr const magic_t MAGIC
{
0x4D41
};
struct header
{
static constexpr const magic_t MAGIC
{
0x4D41
};
magic_t magic; // The magic must match MAGIC
version_t version; // Version indicator
int64_t timestamp; // Module's compile epoch

View file

@ -593,10 +593,10 @@ try
if(unlikely(!header))
throw error("Unexpected null header");
if(header->magic != mapi::header::MAGIC)
if(header->magic != mapi::MAGIC)
throw error("Bad magic [%04x] need: [%04x]",
header->magic,
mapi::header::MAGIC);
mapi::MAGIC);
// Set some basic metadata
auto &meta(header->meta);