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

review: fix formatting

parent a91c4e6a
......@@ -132,14 +132,14 @@ libknot_la_SOURCES = \
libknot/nameserver/name-server.c \
libknot/nameserver/chaos.h \
libknot/nameserver/chaos.c \
libknot/nameserver/internet.h \
libknot/nameserver/internet.c \
libknot/nameserver/axfr.h \
libknot/nameserver/axfr.c \
libknot/nameserver/ixfr.h \
libknot/nameserver/ixfr.c \
libknot/nameserver/update.h \
libknot/nameserver/update.c \
libknot/nameserver/internet.h \
libknot/nameserver/internet.c \
libknot/nameserver/axfr.h \
libknot/nameserver/axfr.c \
libknot/nameserver/ixfr.h \
libknot/nameserver/ixfr.c \
libknot/nameserver/update.h \
libknot/nameserver/update.c \
libknot/nameserver/ns_proc_query.h \
libknot/nameserver/ns_proc_query.c \
libknot/updates/changesets.h \
......
......@@ -342,9 +342,9 @@ static void print_section_host(const knot_rrset_t **rrsets,
free(buf);
}
static void print_error_host(const uint8_t code,
const knot_pkt_t *packet,
const style_t *style)
static void print_error_host(const uint8_t code,
const knot_pkt_t *packet,
const style_t *style)
{
const char *rcode_str = "NULL";
char type[32] = "NULL";
......@@ -418,7 +418,7 @@ void print_header_xfr(const knot_pkt_t *packet, const style_t *style)
}
void print_data_xfr(const knot_pkt_t *packet,
const style_t *style)
const style_t *style)
{
if (packet == NULL || style == NULL) {
DBG_NULL;
......@@ -467,10 +467,10 @@ void print_footer_xfr(const size_t total_len,
}
void print_packet(const knot_pkt_t *packet,
const net_t *net,
const float elapsed,
const bool incoming,
const style_t *style)
const net_t *net,
const float elapsed,
const bool incoming,
const style_t *style)
{
if (packet == NULL || style == NULL) {
DBG_NULL;
......@@ -607,7 +607,7 @@ void free_sign_context(sign_context_t *ctx)
memset(ctx, '\0', sizeof(sign_context_t));
}
int sign_packet(knot_pkt_t *pkt,
int sign_packet(knot_pkt_t *pkt,
sign_context_t *sign_ctx,
const knot_key_params_t *key_params)
{
......@@ -619,7 +619,7 @@ int sign_packet(knot_pkt_t *pkt,
}
uint8_t *wire = pkt->wire;
size_t *wire_size = &pkt->size;
size_t *wire_size = &pkt->size;
size_t max_size = pkt->max_size;
switch (knot_get_key_type(key_params)) {
......@@ -662,7 +662,7 @@ int sign_packet(knot_pkt_t *pkt,
}
}
int verify_packet(const knot_pkt_t *pkt,
int verify_packet(const knot_pkt_t *pkt,
const sign_context_t *sign_ctx,
const knot_key_params_t *key_params)
{
......
......@@ -265,7 +265,7 @@ static bool last_serial_check(const uint32_t serial, const knot_pkt_t *reply)
}
}
static int process_query_packet(const knot_pkt_t *query,
static int process_query_packet(const knot_pkt_t *query,
net_t *net,
const bool ignore_tc,
const sign_context_t *sign_ctx,
......@@ -392,12 +392,12 @@ static int process_query_packet(const knot_pkt_t *query,
static void process_query(const query_t *query)
{
node_t *server = NULL;
node_t *server = NULL;
knot_pkt_t *out_packet;
uint8_t *out = NULL;
size_t out_len = 0;
net_t net;
int ret;
uint8_t *out = NULL;
size_t out_len = 0;
net_t net;
int ret;
if (query == NULL) {
DBG_NULL;
......@@ -487,7 +487,7 @@ static int process_packet_xfr(const knot_pkt_t *query,
const style_t *style)
{
struct timeval t_start, t_query, t_end;
knot_pkt_t *reply;
knot_pkt_t *reply;
uint8_t in[MAX_PACKET_SIZE];
int in_len;
int ret;
......@@ -634,10 +634,10 @@ static int process_packet_xfr(const knot_pkt_t *query,
static void process_query_xfr(const query_t *query)
{
knot_pkt_t *out_packet;
uint8_t *out = NULL;
size_t out_len = 0;
net_t net;
int ret;
uint8_t *out = NULL;
size_t out_len = 0;
net_t net;
int ret;
if (query == NULL) {
DBG_NULL;
......
......@@ -832,7 +832,7 @@ int cmd_answer(const char* lp, nsupdate_params_t *params)
/* Show current answer. */
if (!params->resp) return KNOT_EOK;
printf("\nAnswer:\n");
print_packet(params->resp, NULL, -1, true, &params->style);
print_packet(params->resp, NULL, -1, true, &params->style);
return KNOT_EOK;
}
......
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