Skip to content
Snippets Groups Projects
Commit 4520fca7 authored by Robert Edmonds's avatar Robert Edmonds
Browse files

pkt: make knot_pkt_qname() return const*

This commit makes knot_pkt_qname() return a const pointer to indicate to
callers that the contents (the QNAME in the wire format buffer) should
not be modified.
parent 5419df04
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ static inline uint16_t knot_pkt_question_size(const knot_pkt_t *pkt)
return pkt->qname_size + 2 * sizeof(uint16_t);
}
static inline knot_dname_t *knot_pkt_qname(const knot_pkt_t *pkt)
static inline const knot_dname_t *knot_pkt_qname(const knot_pkt_t *pkt)
{
if (pkt == NULL || pkt->qname_size == 0) {
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment