From 4ccfa2a7819385da682ab465d1ba5fc17c1fe9a2 Mon Sep 17 00:00:00 2001 From: Christian Huitema Date: Sat, 21 Jan 2017 14:46:38 -0800 Subject: [PATCH] Preparing fix for 64 bit warning in net_req_query_id_cmp --- src/context.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/context.c b/src/context.c index d9f2e13b..987d5ea2 100644 --- a/src/context.c +++ b/src/context.c @@ -818,6 +818,10 @@ tls_only_is_in_transports_list(getdns_context *context) { static int net_req_query_id_cmp(const void *id1, const void *id2) +{ + return (intptr_t)id1 - (intptr_t)id2; +} +/* { int ret = 0; @@ -828,6 +832,7 @@ net_req_query_id_cmp(const void *id1, const void *id2) return ret; } +*/ static getdns_tsig_info const tsig_info[] = { { GETDNS_NO_TSIG, NULL, 0, NULL, 0, 0, 0 }