Commit 67d463be authored by Jan Včelák's avatar Jan Včelák 🚀

server: remove NS_PROC_QUERY macro

parent 0266a0ac
......@@ -31,7 +31,6 @@
/* Query processing module implementation. */
const knot_layer_api_t *process_query_layer(void);
#define NS_PROC_QUERY process_query_layer()
/* Query processing specific flags. */
enum process_query_flag {
......
......@@ -312,7 +312,7 @@ int tcp_master(dthread_t *thread)
/* Create TCP answering context. */
tcp.server = handler->server;
tcp.thread_id = handler->thread_id[dt_get_id(thread)];
knot_layer_init(&tcp.layer, &mm, NS_PROC_QUERY);
knot_layer_init(&tcp.layer, &mm, process_query_layer());
/* Prepare structures for bound sockets. */
conf_val_t val = conf_get(conf(), C_SRV, C_LISTEN);
......
......@@ -508,7 +508,7 @@ int udp_master(dthread_t *thread)
memset(&udp, 0, sizeof(udp_context_t));
udp.server = handler->server;
udp.thread_id = handler->thread_id[thr_id];
knot_layer_init(&udp.layer, &mm, NS_PROC_QUERY);
knot_layer_init(&udp.layer, &mm, process_query_layer());
/* Event source. */
struct pollfd *fds = NULL;
......
......@@ -85,7 +85,7 @@ int main(int argc, char *argv[])
/* Create processing context. */
knot_layer_t proc;
memset(&proc, 0, sizeof(knot_layer_t));
knot_layer_init(&proc, &mm, NS_PROC_QUERY);
knot_layer_init(&proc, &mm, process_query_layer());
/* Create fake server environment. */
server_t server;
......
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