Skip to content
Snippets Groups Projects
Commit 79bb51ad authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Fixed type problems.

parent bd63e416
No related branches found
No related tags found
No related merge requests found
......@@ -506,7 +506,7 @@ void sm_tcp_handler(sm_event *ev)
if(n > 0) {
// Send answer
uint answer_size = ev->size_out;
size_t answer_size = ev->size_out;
int res = ns_answer_request(ev->manager->nameserver, ev->inbuf, n, ev->outbuf + sizeof(short),
&answer_size);
......@@ -567,7 +567,7 @@ void sm_udp_handler(sm_event *ev)
}
debug_sm("Received %d bytes.\n", n);
uint answer_size = ev->size_out;
size_t answer_size = ev->size_out;
int res = ns_answer_request(ev->manager->nameserver, ev->inbuf, n, ev->outbuf,
&answer_size);
......
......@@ -128,7 +128,7 @@ int zn_compare_keys( void *key1, void *key2 )
{
// in our case, key is of type ldns_rr_type, but as casting to enum may
// result in undefined behaviour, we use regular unsigned int.
return ((uint)key1 < (uint)key2) ? -1 : (((uint)key1 > (uint)key2) ? 1 : 0);
return (key1 < key2) ? -1 : ((key1 > key2) ? 1 : 0);
}
/*----------------------------------------------------------------------------*/
......
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