mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 16:00:57 +01:00
ircd::mapi: Remove linkage of MAGIC value.
This commit is contained in:
parent
e64ca2827d
commit
9c137d7c50
2 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue