Skip to content
Snippets Groups Projects
Commit cdb1d913 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Correct function return type

refs #2192
parent 60e9d61d
No related branches found
No related tags found
No related merge requests found
......@@ -452,9 +452,9 @@ knot_rrtype_descriptor_t *knot_rrtype_descriptor_by_name(const char *name)
return NULL;
}
uint32_t knot_rrtype_to_string(const uint16_t rrtype,
char *out,
const uint32_t out_len)
int32_t knot_rrtype_to_string(const uint16_t rrtype,
char *out,
const uint32_t out_len)
{
int ret;
......@@ -509,9 +509,9 @@ uint16_t knot_rrtype_from_string(const char *name)
return (uint16_t) rrtype;
}
uint32_t knot_rrclass_to_string(const uint16_t rrclass,
char *out,
const uint32_t out_len)
int32_t knot_rrclass_to_string(const uint16_t rrclass,
char *out,
const uint32_t out_len)
{
int ret;
......
......@@ -324,9 +324,9 @@ knot_rrtype_descriptor_t *knot_rrtype_descriptor_by_name(const char *name);
* \return Length of output string.
* \return -1 if error.
*/
uint32_t knot_rrtype_to_string(const uint16_t rrtype,
char *out,
const uint32_t out_len);
int32_t knot_rrtype_to_string(const uint16_t rrtype,
char *out,
const uint32_t out_len);
/*!
* \brief Converts mnemonic string representation of a type to numeric one.
......@@ -347,9 +347,9 @@ uint16_t knot_rrtype_from_string(const char *name);
* \return Length of output string.
* \return -1 if error.
*/
uint32_t knot_rrclass_to_string(const uint16_t rrclass,
char *out,
const uint32_t out_len);
int32_t knot_rrclass_to_string(const uint16_t rrclass,
char *out,
const uint32_t out_len);
/*!
* \brief Converts string representation of a class to numeric one.
......
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