Commit 979d00cb authored by Jan Včelák's avatar Jan Včelák 🚀

review: no prefix for static variables in functions

parent b0a51fb9
......@@ -156,12 +156,12 @@ static int prepare_query(knot_layer_t *ctx, knot_pkt_t *pkt)
/*! \brief Module implementation. */
const knot_layer_api_t *process_answer_layer(void)
{
static const knot_layer_api_t _layer = {
static const knot_layer_api_t api = {
.begin = &process_answer_begin,
.reset = &process_answer_reset,
.finish = &process_answer_finish,
.consume = &process_answer,
.produce = &prepare_query,
};
return &_layer;
return &api;
}
......@@ -692,7 +692,7 @@ int process_query_qname_case_lower(knot_pkt_t *pkt)
/*! \brief Module implementation. */
const knot_layer_api_t *process_query_layer(void)
{
static const knot_layer_api_t _layer = {
static const knot_layer_api_t api = {
.begin = &process_query_begin,
.reset = &process_query_reset,
.finish = &process_query_finish,
......@@ -700,5 +700,5 @@ const knot_layer_api_t *process_query_layer(void)
.produce = &process_query_out,
.fail = &process_query_err
};
return &_layer;
return &api;
}
......@@ -106,11 +106,11 @@ static int dnstrack_fail(knot_layer_t *ctx, knot_pkt_t *pkt)
/*! Module implementation. */
const knot_layer_api_t *dnstrack_layer(void)
{
static const knot_layer_api_t _layer = {
static const knot_layer_api_t api = {
.consume = &dnstrack_query,
.fail = &dnstrack_fail
};
return &_layer;
return &api;
}
```
......
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