Commit 202ea9cc authored by Michael Graff's avatar Michael Graff
Browse files

make magic numbers be the first things in the structures

parent 8648b619
......@@ -181,8 +181,8 @@ struct dns_c_kid {
* List of key ids for a 'server' statement.
*/
struct dns_c_kid_list {
isc_mem_t *mem;
isc_uint32_t magic;
isc_mem_t *mem;
ISC_LIST(dns_c_kid_t) keyids;
};
......
......@@ -77,8 +77,8 @@ typedef struct dns_c_lstn_list dns_c_lstnlist_t;
* Structure for holing value of a single listen-on statement.
*/
struct dns_c_lstn_on {
isc_mem_t *mem;
isc_uint32_t magic;
isc_mem_t *mem;
in_port_t port;
dns_c_ipmatchlist_t *iml;
......@@ -91,8 +91,8 @@ struct dns_c_lstn_on {
* A list of listen-on statements.
*/
struct dns_c_lstn_list {
isc_mem_t *mem;
isc_uint32_t magic;
isc_mem_t *mem;
ISC_LIST(dns_c_lstnon_t) elements;
};
......
......@@ -43,8 +43,8 @@ typedef struct dns_c_ndcserverlist dns_c_ndcserverlist_t;
typedef struct dns_c_ndckey dnc_c_ndckey_t;
struct dns_c_ndcctx {
isc_mem_t *mem;
isc_uint32_t magic;
isc_mem_t *mem;
dns_c_ndcopts_t *opts;
dns_c_ndcserverlist_t *servers;
......@@ -52,23 +52,23 @@ struct dns_c_ndcctx {
};
struct dns_c_ndcopts {
isc_mem_t *mem;
isc_uint32_t magic;
isc_mem_t *mem;
char *defserver;
char *defkey;
};
struct dns_c_ndcserverlist {
isc_mem_t *mem;
isc_uint32_t magic;
isc_mem_t *mem;
ISC_LIST(dns_c_ndcserver_t) list;
};
struct dns_c_ndcserver {
isc_mem_t *mem;
isc_uint32_t magic;
isc_mem_t *mem;
char *name;
char *key;
......
Markdown is supported
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