Skip to content
Snippets Groups Projects
Commit e26dd8f5 authored by Daniel Salzman's avatar Daniel Salzman Committed by Gerrit Code Review
Browse files

journal: remove redundant magic string

Change-Id: I882697e314d3f3ef731ef531f3ea7462640606e7
parent f4ce7a93
No related merge requests found
......@@ -44,8 +44,6 @@
#include <stdint.h>
#include <fcntl.h>
#include "knot/zone/zone-load.h"
/*!
* \brief Journal entry flags.
*/
......@@ -129,9 +127,11 @@ typedef int (*journal_apply_t)(journal_t *j, journal_node_t *n);
* Journal defaults and constants.
*/
#define JOURNAL_NCOUNT 1024 /*!< Default node count. */
#define JOURNAL_MAGIC {'k', 'n', 'o', 't', '1', '0', '5'}
#define MAGIC_LENGTH 7
/* HEADER = magic, crc, max_entries, qhead, qtail */
#define JOURNAL_HSIZE (MAGIC_LENGTH + sizeof(crc_t) + sizeof(uint16_t) * 3)
#define JOURNAL_MAGIC {'k', 'n', 'o', 't', '1', '0', '5'}
/*!
* \brief Create new journal.
......
......@@ -33,9 +33,6 @@
#include "knot/zone/semantic-check.h"
#include "zscanner/file_loader.h"
#define MAGIC_LENGTH 8
#define MAGIC "knotv130"
/* TODO this structure is highly redundant, remove. Maybe use oh-so-great BIRD lists. */
/*!
* \brief One-purpose linked list holding pointers to RRSets.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment