diff --git a/include/proto/dns.h b/include/proto/dns.h index 80887e86c3..4ccbfa0c7b 100644 --- a/include/proto/dns.h +++ b/include/proto/dns.h @@ -44,6 +44,6 @@ void dns_print_current_resolutions(struct dns_resolvers *resolvers); void dns_update_resolvers_timeout(struct dns_resolvers *resolvers); void dns_reset_resolution(struct dns_resolution *resolution); int dns_check_resolution_queue(struct dns_resolvers *resolvers); -int dns_response_get_query_id(unsigned char *resp); +unsigned short dns_response_get_query_id(unsigned char *resp); #endif // _PROTO_DNS_H diff --git a/src/dns.c b/src/dns.c index 1348be3d97..0d8d305c6d 100644 --- a/src/dns.c +++ b/src/dns.c @@ -796,7 +796,7 @@ int dns_get_ip_from_response(unsigned char *resp, unsigned char *resp_end, /* * returns the query id contained in a DNS response */ -int dns_response_get_query_id(unsigned char *resp) +unsigned short dns_response_get_query_id(unsigned char *resp) { /* read the query id from the response */ return resp[0] * 256 + resp[1];